{"id":6126,"date":"2014-04-13T04:33:00","date_gmt":"2014-04-13T04:33:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/apps-not-running-on-android-emulator-device-collection-of-common-programming-errors-2\/"},"modified":"2014-04-13T04:33:00","modified_gmt":"2014-04-13T04:33:00","slug":"apps-not-running-on-android-emulator-device-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/apps-not-running-on-android-emulator-device-collection-of-common-programming-errors-2\/","title":{"rendered":"apps not running on android emulator\/device-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve asked this already but none of the 2 answers fixed this problem, Now i even tried installing eclipse indigo and install 64 bit jdk, but i just can&#8217;t get the apps to run! The emulator boots up fast No errors , nothing on console. Even the device chooser wont show up(showed up ONCE). This is the 3rd day im trying this to run.<\/p>\n<pre><code>08-04 02:47:12.460: I\/Choreographer(395): Skipped 48 frames!  The application may be doing too much work on its main thread.\n08-04 02:47:12.930: D\/dalvikvm(395): GC_CONCURRENT freed 2417K, 32% free 15263K\/22279K, paused 34ms+11ms, total 171ms\n08-04 02:47:13.380: D\/dalvikvm(395): GC_CONCURRENT freed 1702K, 31% free 15525K\/22279K, paused 31ms+7ms, total 119ms\n08-04 02:47:13.380: D\/dalvikvm(395): WAIT_FOR_CONCURRENT_GC blocked 49ms\n08-04 02:47:13.470: D\/dalvikvm(353): GC_CONCURRENT freed 383K, 6% free 8420K\/8903K, paused 238ms+546ms, total 1896ms\n08-04 02:47:14.050: D\/dalvikvm(395): GC_FOR_ALLOC freed 2028K, 32% free 15307K\/22279K, paused 76ms, total 85ms\n08-04 02:47:14.440: D\/dalvikvm(395): GC_FOR_ALLOC freed 1816K, 35% free 14690K\/22279K, paused 63ms, total 69ms\n08-04 02:47:14.760: E\/SQLiteLog(496): (1) no such table: files\n08-04 02:47:14.960: I\/ContactsDatabaseHelper(353): Locale change completed in 80174ms\n08-04 02:47:14.960: I\/ContactsDatabaseHelper(353): Switching to locale en_US\n08-04 02:47:15.050: E\/WVMExtractor(39): Failed to open libwvm.so\n08-04 02:47:15.240: E\/WVMExtractor(39): Failed to open libwvm.so\n08-04 02:47:15.710: E\/WVMExtractor(39): Failed to open libwvm.so\n08-04 02:47:15.740: E\/MetadataRetrieverClient(39): failed to extract an album art\n08-04 02:47:15.940: W\/MediaProvider(496): no database for scanned volume external\n08-04 02:47:16.090: I\/MediaProvider(496): Upgrading media database from version 0 to 509, which will destroy all old data\n08-04 02:47:16.140: I\/ContactsDatabaseHelper(353): Locale change completed in 1174ms\n08-04 02:47:16.150: I\/ContactsProvider(353): Upgrading aggregation algorithm\n08-04 02:47:16.180: I\/ContactAggregator(353): Marked all visible contacts for aggregation: 0 raw contacts, 7 ms\n08-04 02:47:16.201: I\/ContactsProvider(353): Aggregation algorithm upgraded for 0 raw contacts in 33ms\n08-04 02:47:16.350: I\/ContactsFTS(353): Rebuild contact search index in 106ms, 0 contacts\n08-04 02:47:16.600: D\/dalvikvm(353): GC_CONCURRENT freed 448K, 6% free 8430K\/8967K, paused 36ms+40ms, total 154ms\n08-04 02:47:17.400: E\/SQLiteLog(496): (1) no such table: album_info\n08-04 02:47:17.480: D\/dalvikvm(496): GREF has increased to 201\n08-04 02:47:17.510: W\/MediaScanner(496): Error opening directory '\/mnt\/sdcard\/.android_secure\/', skipping: Permission denied.\n08-04 02:47:17.710: V\/MediaScanner(496): pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@412713a0\n08-04 02:47:17.710: V\/MediaScanner(496): \/pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@412713a0\n08-04 02:47:17.990: E\/MediaScannerService(496): Exception in handleMessage\n08-04 02:47:17.990: E\/MediaScannerService(496): android.database.sqlite.SQLiteConstraintException: column time is not unique (code 19)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:727)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1665)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1644)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at com.android.providers.media.MediaProvider.logToDb(MediaProvider.java:1736)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at com.android.providers.media.MediaProvider.delete(MediaProvider.java:3742)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.content.ContentProvider$Transport.delete(ContentProvider.java:228)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.content.ContentResolver.delete(ContentResolver.java:956)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at com.android.providers.media.MediaScannerService.scan(MediaScannerService.java:109)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at com.android.providers.media.MediaScannerService.access$300(MediaScannerService.java:49)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:261)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.os.Handler.dispatchMessage(Handler.java:99)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at android.os.Looper.loop(Looper.java:137)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:183)\n08-04 02:47:17.990: E\/MediaScannerService(496):     at java.lang.Thread.run(Thread.java:856)\n08-04 02:47:18.050: D\/dalvikvm(496): GC_CONCURRENT freed 331K, 5% free 8285K\/8711K, paused 97ms+127ms, total 296ms\n08-04 02:47:37.340: D\/dalvikvm(483): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.340: D\/dalvikvm(273): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.340: D\/dalvikvm(614): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.340: D\/dalvikvm(395): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.340: D\/dalvikvm(288): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.350: D\/dalvikvm(258): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.350: D\/dalvikvm(426): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.350: D\/dalvikvm(157): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.350: D\/dalvikvm(548): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.350: D\/dalvikvm(445): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.360: D\/dalvikvm(308): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.360: D\/dalvikvm(381): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.360: D\/dalvikvm(496): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.360: D\/dalvikvm(458): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.360: D\/dalvikvm(353): Debugger has detached; object registry had 1 entries\n08-04 02:47:37.360: D\/dalvikvm(531): Debugger has detached; object registry had 1 entries\n08-04 02:50:20.619: D\/dalvikvm(288): GC_CONCURRENT freed 356K, 7% free 8597K\/9159K, paused 39ms+7ms, total 121ms\n08-04 02:56:24.701: E\/ThrottleService(157): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: \/proc\/net\/xt_qtaguid\/iface_stat_all: open failed: ENOENT (No such file or directory)\n08-04 02:58:06.359: D\/dalvikvm(288): GC_CONCURRENT freed 402K, 7% free 8578K\/9159K, paused 77ms+6ms, total 130ms\n08-04 03:00:01.560: D\/dalvikvm(381): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.570: D\/dalvikvm(273): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.570: D\/dalvikvm(614): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.570: D\/dalvikvm(395): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.580: D\/dalvikvm(288): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.580: D\/dalvikvm(258): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.580: D\/dalvikvm(426): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.580: D\/dalvikvm(157): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.590: D\/dalvikvm(445): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.590: D\/dalvikvm(458): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.590: D\/dalvikvm(548): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.590: D\/dalvikvm(531): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.600: D\/dalvikvm(483): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.600: D\/dalvikvm(353): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.610: D\/dalvikvm(308): Debugger has detached; object registry had 1 entries\n08-04 03:00:01.610: D\/dalvikvm(496): Debugger has detached; object registry had 1 entries\n08-04 03:02:05.292: D\/dalvikvm(157): GC_CONCURRENT freed 472K, 46% free 10280K\/18951K, paused 76ms+13ms, total 196ms\n08-04 03:05:46.020: D\/dalvikvm(288): GC_CONCURRENT freed 384K, 7% free 8578K\/9159K, paused 33ms+5ms, total 89ms\n08-04 03:06:24.740: E\/ThrottleService(157): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: \/proc\/net\/xt_qtaguid\/iface_stat_all: open failed: ENOENT (No such file or directory)\n08-04 03:13:22.300: D\/dalvikvm(288): GC_CONCURRENT freed 384K, 7% free 8578K\/9159K, paused 19ms+5ms, total 87ms\n<\/code><\/pre>\n<p>EDIT: just now, I tried running it and it worked(it worked also before but mmost of the time it doesn&#8217;t) and this showed up in the console<\/p>\n<pre><code>[2012-08-04 10:21:35 - RunAndroid] ------------------------------\n[2012-08-04 10:21:35 - RunAndroid] Android Launch!\n[2012-08-04 10:21:35 - RunAndroid] adb is running normally.\n[2012-08-04 10:21:35 - RunAndroid] Performing com.example.runandroid.MainActivity activity launch\n[2012-08-04 10:21:41 - RunAndroid] Launch canceled!\n<\/code><\/pre>\n<p>Then the device chooser showed up .The emulator and my device is showed up on the list. As you can see i cancelled it to see if it would run again, then i re ran the program and there, back to it&#8217;s problem, the device chooser isn&#8217;t showing up, nothing on console.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve asked this already but none of the 2 answers fixed this problem, Now i even tried installing eclipse indigo and install 64 bit jdk, but i just can&#8217;t get the apps to run! The emulator boots up fast No errors , nothing on console. Even the device chooser wont show up(showed up ONCE). This [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6126","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6126"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6126\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}