Installed android app with eclipse working but install app with apk failed when launch? -
Installed android app with eclipse working but install app with apk failed when launch? -
i have next code runs fine when run straight using eclipse. when export apk , install it, cant launch it. keeps crashing.
public class mydatabase extends sqliteopenhelper{ private static final string db_name = "db"; sqlitedatabase db; /** create table sql */ private static final string create_table_sql = "";/*create table statement*/ public mydatabase(context context) { super(context, db_name, null, 1); db = getwritabledatabase(); } @override public void oncreate(sqlitedatabase db) { db.begintransaction(); seek { db.execsql(create_table_sql); log.d("t", "database:"+db_name+" created"); db.settransactionsuccessful(); } grab (exception e) { e.printstacktrace(); } { db.endtransaction(); db.close(); super.close(); } } @override public void onupgrade(sqlitedatabase db, int oldversion, int newversion) { // todo auto-generated method stub }
}
what difference between installing eclipse vs installing apk?
thanks.
regards, dexter
question difference between installing eclipse vs installing apk?
answer installing through eclipse
same installing apk in device.
the difference when run ur project install .apk
file in emulator. can see .apk
file bin
folder same .apk
insalled in emulator , u can take apk , insall in ur device.
when u install .apk
file in device, app may crash various regions like..
1) due compatibility.
2) due screen resolution.
3) due big images not fitting particular layout, etc.
android eclipse
Comments
Post a Comment