Android Question Please help my apk brings error unforfunately app has stopped

Makumbi

Well-Known Member
Licensed User
Please help i have managed to upload those files but the file for objects has refused because it is some how big when i release my app to my phone i get error unforfunately app has stopped please help me find where the problems is thanks
 

Attachments

  • filesone.zip
    63 KB · Views: 151

DonManfred

Expert
Licensed User
Longtime User
Where is the full error?
 
Upvote 0

Makumbi

Well-Known Member
Licensed User
It shows unfortunately app has stopped after installing apk on the phone but when I I run it in the emulator it runs well but when I release it to apk it refuses
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
After i used the right filename for the DB

i ran into an table not found error.

This are the tables in the DB.

xclv_084.png


But running your app you are querying table Register which does not exists in the Database.

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
main_activity_resume (java line: 445)
android.database.sqlite.SQLiteException: no such table: Register (code 1): , while compiling: SELECT ID FROM Register
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such table: Register (code 1): , while compiling: SELECT ID FROM Register)
#################################################################
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1095)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:660)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1739)
at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1678)
at anywheresoftware.b4a.sql.SQL.ExecQuery2(SQL.java:223)
at anywheresoftware.b4a.sql.SQL.ExecQuery(SQL.java:211)
at de.amberhome.slidemenuexample.main._activity_resume(main.java:445)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
at de.amberhome.slidemenuexample.main.afterFirstLayout(main.java:110)
at de.amberhome.slidemenuexample.main.access$000(main.java:17)
at de.amberhome.slidemenuexample.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
android.database.sqlite.SQLiteException: no such table: Register (code 1): , while compiling: SELECT ID FROM Register
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such table: Register (code 1): , while compiling: SELECT ID FROM Register)
#################################################################
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
main_activity_resume (java line: 445)
android.database.sqlite.SQLiteException: no such table: Register (code 1): , while compiling: SELECT ID FROM Register
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such table: Register (code 1): , while compiling: SELECT ID FROM Register)
#################################################################
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1095)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:660)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1739)
at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1678)
at anywheresoftware.b4a.sql.SQL.ExecQuery2(SQL.java:223)
at anywheresoftware.b4a.sql.SQL.ExecQuery(SQL.java:211)
at de.amberhome.slidemenuexample.main._activity_resume(main.java:445)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
at de.amberhome.slidemenuexample.main$ResumeMessage.run(main.java:310)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
android.database.sqlite.SQLiteException: no such table: Register (code 1): , while compiling: SELECT ID FROM Register
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such table: Register (code 1): , while compiling: SELECT ID FROM Register)
#################################################################
** Activity (main) Pause, UserClosed = false **
 
Upvote 0

Similar Threads

Top