Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

No GPS or APs on Android Version 2.3.3 HTC Sense Version 2.1 Software number 2.76.651.4 #4

Open
msptech opened this issue Mar 20, 2012 · 4 comments

Comments

@msptech
Copy link

msptech commented Mar 20, 2012

I tried to install your app from the Play Store on my Sprint Android phone.

However I ran into some difficulties.

The map never gets the GPS position even though I can click on Google Maps and it gets my GPS just fine. Also I looked under quick settings and both GPS and Wifi are enabled.

I then powered off the phone, waited a few seconds and powered it on hoping to fix this. No luck.

I then uninstalled and re-installed your app. Still no luck.

Is there anyway to get this working on the Android Version 2.3.3 HTC Sense Version 2.1 phone?

Am I doing something wrong? I checked the settings for distance 50, DBm -99, and turned notifications on. No luck.

Hopefully you have a solution.

I also tried downloading your code and compiling it with Eclipse myself but after the APK loads I get the following error:

I set the compiler to 1.5, the environment to Google APIs, Platform 2.2 API LV8.

However when I run the project it installs the apk displays the gui for wardrive on the AVD for a few seconds then I get "Sorry! The application wardrive (process ki.wardrive) has stopped unexpectedly. Please try again."

and the LogCat shows:

03-19 23:08:04.918: D/dalvikvm(443): GC_FOR_MALLOC freed 4748 objects / 300144 bytes in 571ms
03-19 23:08:06.077: D/dalvikvm(443): GC_FOR_MALLOC freed 10229 objects / 621416 bytes in 305ms
03-19 23:08:07.029: D/dalvikvm(443): GC_FOR_MALLOC freed 4666 objects / 306496 bytes in 317ms
03-19 23:08:08.498: D/dalvikvm(443): GC_FOR_MALLOC freed 6205 objects / 378560 bytes in 466ms
03-19 23:08:09.892: D/dalvikvm(443): GC_FOR_MALLOC freed 8543 objects / 652136 bytes in 317ms
03-19 23:08:10.857: D/dalvikvm(443): GC_FOR_MALLOC freed 6087 objects / 370120 bytes in 302ms
03-19 23:08:13.167: D/dalvikvm(443): GC_EXTERNAL_ALLOC freed 3380 objects / 293080 bytes in 360ms
03-19 23:08:13.368: I/Database(443): sqlite returned: error code = 14, msg = cannot open file at source line 25467
03-19 23:08:13.378: E/Database(443): sqlite3_open_v2("/mnt/sdcard/wardrive.db3", &handle, 6, NULL) failed
03-19 23:08:13.478: E/ki.wardrive.Main(443): unable to open database file
03-19 23:08:13.478: E/ki.wardrive.Main(443): android.database.sqlite.SQLiteException: unable to open database file
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1812)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:817)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:851)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at ki.wardrive.Main.onCreate(Main.java:288)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.os.Looper.loop(Looper.java:123)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:08:13.478: E/ki.wardrive.Main(443): at dalvik.system.NativeStart.main(Native Method)
03-19 23:08:22.148: D/AndroidRuntime(443): Shutting down VM
03-19 23:08:22.148: W/dalvikvm(443): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-19 23:08:22.367: E/AndroidRuntime(443): FATAL EXCEPTION: main
03-19 23:08:22.367: E/AndroidRuntime(443): java.lang.RuntimeException: Unable to destroy activity {ki.wardrive/ki.wardrive.Main}: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:08:22.367: E/AndroidRuntime(443): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3655)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3673)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.app.ActivityThread.access$2900(ActivityThread.java:125)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.os.Looper.loop(Looper.java:123)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:08:22.367: E/AndroidRuntime(443): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:08:22.367: E/AndroidRuntime(443): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:08:22.367: E/AndroidRuntime(443): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:08:22.367: E/AndroidRuntime(443): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:08:22.367: E/AndroidRuntime(443): at dalvik.system.NativeStart.main(Native Method)
03-19 23:08:22.367: E/AndroidRuntime(443): Caused by: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:08:22.367: E/AndroidRuntime(443): at android.app.ActivityThread$PackageInfo.forgetServiceDispatcher(ActivityThread.java:1074)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.app.ContextImpl.unbindService(ContextImpl.java:886)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.content.ContextWrapper.unbindService(ContextWrapper.java:352)
03-19 23:08:22.367: E/AndroidRuntime(443): at ki.wardrive.Main.onDestroy(Main.java:382)
03-19 23:08:22.367: E/AndroidRuntime(443): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3642)
03-19 23:08:22.367: E/AndroidRuntime(443): ... 11 more
03-19 23:10:14.329: I/Process(443): Sending signal. PID: 443 SIG: 9
03-19 23:10:31.566: D/dalvikvm(452): GC_FOR_MALLOC freed 4781 objects / 301248 bytes in 456ms
03-19 23:10:32.858: D/dalvikvm(452): GC_FOR_MALLOC freed 10196 objects / 619728 bytes in 360ms
03-19 23:10:33.889: D/dalvikvm(452): GC_FOR_MALLOC freed 4692 objects / 307816 bytes in 343ms
03-19 23:10:34.988: D/dalvikvm(452): GC_FOR_MALLOC freed 6196 objects / 378112 bytes in 303ms
03-19 23:10:36.727: D/dalvikvm(452): GC_FOR_MALLOC freed 8538 objects / 651464 bytes in 480ms
03-19 23:10:37.817: D/dalvikvm(452): GC_FOR_MALLOC freed 6086 objects / 370112 bytes in 376ms
03-19 23:10:38.603: D/dalvikvm(452): GC_EXTERNAL_ALLOC freed 3380 objects / 292896 bytes in 314ms
03-19 23:10:38.757: I/Database(452): sqlite returned: error code = 14, msg = cannot open file at source line 25467
03-19 23:10:38.757: E/Database(452): sqlite3_open_v2("/mnt/sdcard/wardrive.db3", &handle, 6, NULL) failed
03-19 23:10:38.828: E/ki.wardrive.Main(452): unable to open database file
03-19 23:10:38.828: E/ki.wardrive.Main(452): android.database.sqlite.SQLiteException: unable to open database file
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1812)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:817)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:851)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at ki.wardrive.Main.onCreate(Main.java:288)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.os.Looper.loop(Looper.java:123)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:10:38.828: E/ki.wardrive.Main(452): at dalvik.system.NativeStart.main(Native Method)
03-19 23:10:42.438: D/AndroidRuntime(452): Shutting down VM
03-19 23:10:42.438: W/dalvikvm(452): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-19 23:10:43.358: E/AndroidRuntime(452): FATAL EXCEPTION: main
03-19 23:10:43.358: E/AndroidRuntime(452): java.lang.RuntimeException: Unable to destroy activity {ki.wardrive/ki.wardrive.Main}: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:10:43.358: E/AndroidRuntime(452): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3655)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3673)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.app.ActivityThread.access$2900(ActivityThread.java:125)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.os.Looper.loop(Looper.java:123)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:10:43.358: E/AndroidRuntime(452): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:10:43.358: E/AndroidRuntime(452): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:10:43.358: E/AndroidRuntime(452): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:10:43.358: E/AndroidRuntime(452): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:10:43.358: E/AndroidRuntime(452): at dalvik.system.NativeStart.main(Native Method)
03-19 23:10:43.358: E/AndroidRuntime(452): Caused by: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:10:43.358: E/AndroidRuntime(452): at android.app.ActivityThread$PackageInfo.forgetServiceDispatcher(ActivityThread.java:1074)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.app.ContextImpl.unbindService(ContextImpl.java:886)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.content.ContextWrapper.unbindService(ContextWrapper.java:352)
03-19 23:10:43.358: E/AndroidRuntime(452): at ki.wardrive.Main.onDestroy(Main.java:382)
03-19 23:10:43.358: E/AndroidRuntime(452): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3642)
03-19 23:10:43.358: E/AndroidRuntime(452): ... 11 more
03-19 23:10:52.317: I/Process(452): Sending signal. PID: 452 SIG: 9
03-19 23:11:02.988: D/dalvikvm(460): GC_FOR_MALLOC freed 4813 objects / 302576 bytes in 365ms
03-19 23:11:04.517: D/dalvikvm(460): GC_FOR_MALLOC freed 10203 objects / 620056 bytes in 658ms
03-19 23:11:05.489: D/dalvikvm(460): GC_FOR_MALLOC freed 4695 objects / 307944 bytes in 277ms
03-19 23:11:06.708: D/dalvikvm(460): GC_FOR_MALLOC freed 6193 objects / 377872 bytes in 395ms
03-19 23:11:07.998: D/dalvikvm(460): GC_FOR_MALLOC freed 8538 objects / 651568 bytes in 343ms
03-19 23:11:09.058: D/dalvikvm(460): GC_FOR_MALLOC freed 6085 objects / 370192 bytes in 352ms
03-19 23:11:09.948: D/dalvikvm(460): GC_EXTERNAL_ALLOC freed 3382 objects / 292904 bytes in 342ms
03-19 23:11:10.177: I/Database(460): sqlite returned: error code = 14, msg = cannot open file at source line 25467
03-19 23:11:10.177: E/Database(460): sqlite3_open_v2("/mnt/sdcard/wardrive.db3", &handle, 6, NULL) failed
03-19 23:11:10.328: E/ki.wardrive.Main(460): unable to open database file
03-19 23:11:10.328: E/ki.wardrive.Main(460): android.database.sqlite.SQLiteException: unable to open database file
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1812)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:817)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:851)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at ki.wardrive.Main.onCreate(Main.java:288)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.os.Looper.loop(Looper.java:123)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:11:10.328: E/ki.wardrive.Main(460): at dalvik.system.NativeStart.main(Native Method)
03-19 23:11:13.997: D/AndroidRuntime(460): Shutting down VM
03-19 23:11:13.997: W/dalvikvm(460): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-19 23:11:14.878: E/AndroidRuntime(460): FATAL EXCEPTION: main
03-19 23:11:14.878: E/AndroidRuntime(460): java.lang.RuntimeException: Unable to destroy activity {ki.wardrive/ki.wardrive.Main}: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:11:14.878: E/AndroidRuntime(460): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3655)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3673)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.app.ActivityThread.access$2900(ActivityThread.java:125)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.os.Looper.loop(Looper.java:123)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:11:14.878: E/AndroidRuntime(460): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:11:14.878: E/AndroidRuntime(460): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:11:14.878: E/AndroidRuntime(460): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:11:14.878: E/AndroidRuntime(460): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:11:14.878: E/AndroidRuntime(460): at dalvik.system.NativeStart.main(Native Method)
03-19 23:11:14.878: E/AndroidRuntime(460): Caused by: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:11:14.878: E/AndroidRuntime(460): at android.app.ActivityThread$PackageInfo.forgetServiceDispatcher(ActivityThread.java:1074)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.app.ContextImpl.unbindService(ContextImpl.java:886)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.content.ContextWrapper.unbindService(ContextWrapper.java:352)
03-19 23:11:14.878: E/AndroidRuntime(460): at ki.wardrive.Main.onDestroy(Main.java:382)
03-19 23:11:14.878: E/AndroidRuntime(460): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3642)
03-19 23:11:14.878: E/AndroidRuntime(460): ... 11 more
03-19 23:12:18.068: I/Process(460): Sending signal. PID: 460 SIG: 9
03-19 23:12:52.368: D/dalvikvm(495): GC_FOR_MALLOC freed 4867 objects / 304536 bytes in 331ms
03-19 23:12:53.620: D/dalvikvm(495): GC_FOR_MALLOC freed 10211 objects / 620400 bytes in 343ms
03-19 23:12:54.758: D/dalvikvm(495): GC_FOR_MALLOC freed 4690 objects / 307856 bytes in 323ms
03-19 23:12:55.868: D/dalvikvm(495): GC_FOR_MALLOC freed 6199 objects / 378096 bytes in 328ms
03-19 23:12:57.238: D/dalvikvm(495): GC_FOR_MALLOC freed 8538 objects / 651504 bytes in 368ms
03-19 23:13:01.310: D/dalvikvm(495): GC_FOR_MALLOC freed 6086 objects / 370296 bytes in 327ms
03-19 23:13:02.188: D/dalvikvm(495): GC_EXTERNAL_ALLOC freed 3380 objects / 292944 bytes in 361ms
03-19 23:13:02.398: I/Database(495): sqlite returned: error code = 14, msg = cannot open file at source line 25467
03-19 23:13:02.398: E/Database(495): sqlite3_open_v2("/mnt/sdcard/wardrive.db3", &handle, 6, NULL) failed
03-19 23:13:02.468: E/ki.wardrive.Main(495): unable to open database file
03-19 23:13:02.468: E/ki.wardrive.Main(495): android.database.sqlite.SQLiteException: unable to open database file
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1812)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:817)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:851)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at ki.wardrive.Main.onCreate(Main.java:288)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.os.Looper.loop(Looper.java:123)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:13:02.468: E/ki.wardrive.Main(495): at dalvik.system.NativeStart.main(Native Method)
03-19 23:13:06.968: D/AndroidRuntime(495): Shutting down VM
03-19 23:13:06.968: W/dalvikvm(495): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-19 23:13:07.334: E/AndroidRuntime(495): FATAL EXCEPTION: main
03-19 23:13:07.334: E/AndroidRuntime(495): java.lang.RuntimeException: Unable to destroy activity {ki.wardrive/ki.wardrive.Main}: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:13:07.334: E/AndroidRuntime(495): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3655)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3673)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.app.ActivityThread.access$2900(ActivityThread.java:125)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.os.Looper.loop(Looper.java:123)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:13:07.334: E/AndroidRuntime(495): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:13:07.334: E/AndroidRuntime(495): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:13:07.334: E/AndroidRuntime(495): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:13:07.334: E/AndroidRuntime(495): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:13:07.334: E/AndroidRuntime(495): at dalvik.system.NativeStart.main(Native Method)
03-19 23:13:07.334: E/AndroidRuntime(495): Caused by: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:13:07.334: E/AndroidRuntime(495): at android.app.ActivityThread$PackageInfo.forgetServiceDispatcher(ActivityThread.java:1074)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.app.ContextImpl.unbindService(ContextImpl.java:886)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.content.ContextWrapper.unbindService(ContextWrapper.java:352)
03-19 23:13:07.334: E/AndroidRuntime(495): at ki.wardrive.Main.onDestroy(Main.java:382)
03-19 23:13:07.334: E/AndroidRuntime(495): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3642)
03-19 23:13:07.334: E/AndroidRuntime(495): ... 11 more
03-19 23:13:17.819: I/Process(495): Sending signal. PID: 495 SIG: 9
03-19 23:13:30.929: D/dalvikvm(503): GC_FOR_MALLOC freed 4896 objects / 305520 bytes in 318ms
03-19 23:13:32.138: D/dalvikvm(503): GC_FOR_MALLOC freed 10210 objects / 620392 bytes in 291ms
03-19 23:13:33.257: D/dalvikvm(503): GC_FOR_MALLOC freed 4691 objects / 307992 bytes in 378ms
03-19 23:13:34.348: D/dalvikvm(503): GC_FOR_MALLOC freed 6199 objects / 378160 bytes in 346ms
03-19 23:13:35.577: D/dalvikvm(503): GC_FOR_MALLOC freed 8542 objects / 651608 bytes in 330ms
03-19 23:13:36.617: D/dalvikvm(503): GC_FOR_MALLOC freed 6087 objects / 370032 bytes in 327ms
03-19 23:13:37.507: D/dalvikvm(503): GC_EXTERNAL_ALLOC freed 3376 objects / 292672 bytes in 346ms
03-19 23:13:37.698: I/Database(503): sqlite returned: error code = 14, msg = cannot open file at source line 25467
03-19 23:13:37.698: E/Database(503): sqlite3_open_v2("/mnt/sdcard/wardrive.db3", &handle, 6, NULL) failed
03-19 23:13:37.768: E/ki.wardrive.Main(503): unable to open database file
03-19 23:13:37.768: E/ki.wardrive.Main(503): android.database.sqlite.SQLiteException: unable to open database file
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1812)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:817)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:851)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at ki.wardrive.Main.onCreate(Main.java:288)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.os.Looper.loop(Looper.java:123)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:13:37.768: E/ki.wardrive.Main(503): at dalvik.system.NativeStart.main(Native Method)
03-19 23:13:41.257: D/AndroidRuntime(503): Shutting down VM
03-19 23:13:41.257: W/dalvikvm(503): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-19 23:13:42.148: E/AndroidRuntime(503): FATAL EXCEPTION: main
03-19 23:13:42.148: E/AndroidRuntime(503): java.lang.RuntimeException: Unable to destroy activity {ki.wardrive/ki.wardrive.Main}: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:13:42.148: E/AndroidRuntime(503): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3655)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3673)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.app.ActivityThread.access$2900(ActivityThread.java:125)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.os.Looper.loop(Looper.java:123)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-19 23:13:42.148: E/AndroidRuntime(503): at java.lang.reflect.Method.invokeNative(Native Method)
03-19 23:13:42.148: E/AndroidRuntime(503): at java.lang.reflect.Method.invoke(Method.java:521)
03-19 23:13:42.148: E/AndroidRuntime(503): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-19 23:13:42.148: E/AndroidRuntime(503): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-19 23:13:42.148: E/AndroidRuntime(503): at dalvik.system.NativeStart.main(Native Method)
03-19 23:13:42.148: E/AndroidRuntime(503): Caused by: java.lang.IllegalArgumentException: Service not registered: ki.wardrive.Main$1@44f4c688
03-19 23:13:42.148: E/AndroidRuntime(503): at android.app.ActivityThread$PackageInfo.forgetServiceDispatcher(ActivityThread.java:1074)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.app.ContextImpl.unbindService(ContextImpl.java:886)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.content.ContextWrapper.unbindService(ContextWrapper.java:352)
03-19 23:13:42.148: E/AndroidRuntime(503): at ki.wardrive.Main.onDestroy(Main.java:382)
03-19 23:13:42.148: E/AndroidRuntime(503): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3642)
03-19 23:13:42.148: E/AndroidRuntime(503): ... 11 more

Any help would be greatly appreciated.

Thanks in advance Raffael,

Aaron

I can be reached at:
[email protected]

@raffaeleragni
Copy link
Owner

If seems the root of the exception lies with the database not being created somehow.

The code is quite old, based on how android worked in 1.6 mostly. Maybe it could use a refactoring and such... using things like SQLiteOpenHelpers and more intent-driven than direct binded calls. Though I'm finding my time drained into other projects. I could probably give a help if you plan to play with sources.

@msptech
Copy link
Author

msptech commented Mar 21, 2012

Thanks for the quick reply Raffaele,

I managed to get your app to work on my eclipse, it was a matter of setting
the SD card size in eclipse that got it to work. (since the size was not
set it could not access an SD card) My first time using eclipse to develop
on, so I am still figuring out some of the platform specifics.

Currently I am working on writing in the functionality to select alternate
upload locations. (in addition to Wigle) I am in the process of talking to
Michael at OpenBMap to interface your app with their database as well as
Wigles. This will satisfy the feature request someone posted to your site.

Also I had a question about the wifi scanning delay. I noticed that you set
the delay minimum to 3 seconds. Is there a particular reason for doing so?
In Wigle's android app a person can set it to scan once every second. I was
thinking of even changing this to once every 0.5 seconds so that it scans
networks more often which would improve accuracy especially while moving
fast, for example, driving. Would there be drawback in shortening the delay
to 0.5 seconds or is there something I am not seeing?

Anyways, great app. You did an awesome job on it.

I look forward to your reply,

Aaron

On Tue, Mar 20, 2012 at 10:47 AM, Raffaele Ragni <
[email protected]

wrote:

If seems the root of the exception lies with the database not being
created somehow.

The code is quite old, based on how android worked in 1.6 mostly. Maybe it
could use a refactoring and such... using things like SQLiteOpenHelpers and
more intent-driven than direct binded calls. Though I'm finding my time
drained into other projects. I could probably give a help if you plan to
play with sources.


Reply to this email directly or view it on GitHub:

#4 (comment)

Aaron Wyman
President,
Wyman Inceptions, Inc.
DBA: MSP Technologies

Toll Free: 1-800-245-3002
Local: 310-722-2383
Fax: 1-800-245-9079

MSP Technologies
4825 Torrance Blvd. Ste. 17
Torrance, CA 90503

www.MSPTechnologies.com http://www.msptechnologies.com/

Founder of
www.nbcfits.org

@raffaeleragni
Copy link
Owner

GPS cannot go under a second on Android (least I reached was 890ms), even if you set it to 0.
Why did I set to 3 minimum? Because wardrive is meant for... wardriving. Like turning the service on, put the phone to sleep/screen off, and it continues to scan in your pocked while walking.
3 seconds like that is already a big drain on battery. Also remember we're talking about phones, not dedicated devices, I'm not expecting people going pro with this and make the battery not even last a pair of hours... and not being able to get a phone call. (which can happen at any time, too).

Basically the difference here between a 'desktop' app is that Android brings new variables.

Also, the times I've determined (3/3, 30/50, etc.) are tailored to different speed of movement. One is for walking, another by car. If you go at 110km/h, it's around 30m/s. 3 seconds = less than 100mt covered.
But while walking you can even use the 30 seconds one, because you won't be covering the same area with movement and you would be scanning the same wifi many times. Also on a very crowded wifi area the app will have hard times with CPU...
I'm not even sure if 3s is CPU safe, actually. Some reports battery drainage anyway.

Of course you can choose any speed that matches your need anyway. A better spot scanned (higher wifi signal) overwrites the old one.

@msptech
Copy link
Author

msptech commented Mar 26, 2012

Thanks for the reply. This makes more sense now. Thanks for the helpful information.

-Aaron

Sent from my HTC smartphone on the Now Network from Sprint!

----- Reply message -----
From: "Raffaele Ragni" [email protected]
To: "msptech" [email protected]
Subject: [android-wardrive] No GPS or APs on Android Version 2.3.3 HTC Sense Version 2.1 Software number 2.76.651.4 (#4)
Date: Mon, Mar 26, 2012 7:33 am

GPS cannot go under a second on Android (least I reached was 890ms), even if you set it to 0.
Why did I set to 3 minimum? Because wardrive is meant for... wardriving. Like turning the service on, put the phone to sleep/screen off, and it continues to scan in your pocked while walking.
3 seconds like that is already a big drain on battery. Also remember we're talking about phones, not dedicated devices, I'm not expecting people going pro with this and make the battery not even last a pair of hours... and not being able to get a phone call. (which can happen at any time, too).

Basically the difference here between a 'desktop' app is that Android brings new variables.

Also, the times I've determined (3/3, 30/50, etc.) are tailored to different speed of movement. One is for walking, another by car. If you go at 110km/h, it's around 30m/s. 3 seconds = less than 100mt covered.
But while walking you can even use the 30 seconds one, because you won't be covering the same area with movement and you would be scanning the same wifi many times. Also on a very crowded wifi area the app will have hard times with CPU...
I'm not even sure if 3s is CPU safe, actually. Some reports battery drainage anyway.

Of course you can choose any speed that matches your need anyway. A better spot scanned (higher wifi signal) overwrites the old one.


Reply to this email directly or view it on GitHub:
#4 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants