Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy debug window is empty in Eclipse running an Android app?
    primarykey
    data
    text
    <p>Why is the debug window empty debugging an Android app that does not include a MAIN and LAUNCH activity, but only a receiver? Is it normal or there is something wrong?</p> <p>When I launch the app in debug mode this is the LogCat:</p> <pre><code>10-24 13:02:52.998: D/AndroidRuntime(5782): &gt;&gt;&gt;&gt;&gt;&gt; AndroidRuntime START com.android.internal.os.RuntimeInit &lt;&lt;&lt;&lt;&lt;&lt; 10-24 13:02:52.998: D/AndroidRuntime(5782): CheckJNI is ON 10-24 13:02:53.108: D/dalvikvm(5782): Trying to load lib libjavacore.so 0x0 10-24 13:02:53.118: D/dalvikvm(5782): Added shared lib libjavacore.so 0x0 10-24 13:02:53.159: D/dalvikvm(5782): Trying to load lib libnativehelper.so 0x0 10-24 13:02:53.168: D/dalvikvm(5782): Added shared lib libnativehelper.so 0x0 10-24 13:02:54.324: D/AndroidRuntime(5782): Calling main entry com.android.commands.pm.Pm 10-24 13:02:54.398: D/AndroidRuntime(5782): Shutting down VM 10-24 13:02:54.418: D/dalvikvm(5782): GC_CONCURRENT freed 102K, 78% free 466K/2048K, paused 1ms+3ms, total 22ms 10-24 13:02:54.448: D/dalvikvm(5782): Debugger has detached; object registry had 1 entries 10-24 13:04:07.651: E/ThrottleService(159): 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) 10-24 13:05:07.188: E/MP3Extractor(39): Unable to resync. Signalling end of stream. 10-24 13:05:08.118: I/AudioService(159): AudioFocus abandonAudioFocus() from android.media.AudioManager@412af538 10-24 13:06:00.370: D/dalvikvm(220): GC_CONCURRENT freed 386K, 57% free 9099K/20743K, paused 74ms+10ms, total 195ms </code></pre> <p>This is the Console window</p> <pre><code>[2012-10-24 15:02:53 - SMSApp] ------------------------------ [2012-10-24 15:02:53 - SMSApp] Android Launch! [2012-10-24 15:02:53 - SMSApp] adb is running normally. [2012-10-24 15:02:53 - SMSApp] No Launcher activity found! [2012-10-24 15:02:53 - SMSApp] The launch will only sync the application package on the device! [2012-10-24 15:02:53 - SMSApp] Performing sync [2012-10-24 15:02:53 - SMSApp] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'NFC-Smartphone-1' [2012-10-24 15:02:55 - SMSApp] Application already deployed. No need to reinstall. [2012-10-24 15:02:55 - SMSApp] \SMSApp\bin\SMSApp.apk installed on device [2012-10-24 15:02:55 - SMSApp] Done! </code></pre> <p>As you can see the application was already installed on the emulator, but the same issue is present when the application is installed for the first time. Let me know whether it is useful to see also the code.</p> <p>I tried with a slightly different version of the same app just to force Eclipse to reinstall the app in the emulator (added a space). This is the LogCat of the reinstallation:</p> <pre><code>10-25 12:43:14.628: D/AndroidRuntime(701): &gt;&gt;&gt;&gt;&gt;&gt; AndroidRuntime START com.android.internal.os.RuntimeInit &lt;&lt;&lt;&lt;&lt;&lt; 10-25 12:43:14.628: D/AndroidRuntime(701): CheckJNI is ON 10-25 12:43:14.687: D/dalvikvm(701): Trying to load lib libjavacore.so 0x0 10-25 12:43:14.707: D/dalvikvm(701): Added shared lib libjavacore.so 0x0 10-25 12:43:14.747: D/dalvikvm(701): Trying to load lib libnativehelper.so 0x0 10-25 12:43:14.747: D/dalvikvm(701): Added shared lib libnativehelper.so 0x0 10-25 12:43:15.647: D/AndroidRuntime(701): Calling main entry com.android.commands.pm.Pm 10-25 12:43:15.707: W/ActivityManager(148): No content provider found for permission revoke: file:///data/local/tmp/SMSApp.apk 10-25 12:43:15.737: W/ActivityManager(148): No content provider found for permission revoke: file:///data/local/tmp/SMSApp.apk 10-25 12:43:15.917: I/PackageManager(148): Removing non-system package:com.storassa.android.smsapp 10-25 12:43:15.917: I/ActivityManager(148): Force stopping package com.storassa.android.smsapp uid=10044 10-25 12:43:15.967: I/dalvikvm(148): Jit: resizing JitTable from 4096 to 8192 10-25 12:43:16.088: I/PackageManager(148): Package com.storassa.android.smsapp codePath changed from /data/app/com.storassa.android.smsapp-2.apk to /data/app/com.storassa.android.smsapp-1.apk; Retaining data and using new 10-25 12:43:16.098: I/PackageManager(148): Running dexopt on: com.storassa.android.smsapp 10-25 12:43:16.948: D/dalvikvm(715): DexOpt: load 124ms, verify+opt 526ms, 730780 bytes 10-25 12:43:16.977: I/ActivityManager(148): Force stopping package com.storassa.android.smsapp uid=10044 10-25 12:43:16.977: W/PackageManager(148): Code path for pkg : com.storassa.android.smsapp changing from /data/app/com.storassa.android.smsapp-2.apk to /data/app/com.storassa.android.smsapp-1.apk 10-25 12:43:16.977: W/PackageManager(148): Resource path for pkg : com.storassa.android.smsapp changing from /data/app/com.storassa.android.smsapp-2.apk to /data/app/com.storassa.android.smsapp-1.apk 10-25 12:43:17.067: D/PackageManager(148): New package installed in /data/app/com.storassa.android.smsapp-1.apk 10-25 12:43:17.337: D/dalvikvm(148): GC_CONCURRENT freed 664K, 8% free 11375K/12231K, paused 77ms+12ms, total 180ms 10-25 12:43:17.337: D/dalvikvm(148): WAIT_FOR_CONCURRENT_GC blocked 100ms </code></pre> <p>Another tips: no saved filters appears in LogCat.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload