Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid restarts App with message "Turning on JNI app bug workarounds for target SDK version 9..."
    primarykey
    data
    text
    <p>We are developing an app with the following entries in the manifest</p> <pre><code>&lt;uses-sdk android:maxSdkVersion="18" android:minSdkVersion="8" android:targetSdkVersion="9" /&gt; </code></pre> <p>The application receives messages via GCM containing an id, then the app grabs corresponding messages from the app engine via this id.</p> <p>Some of our customers complain about, messages not being fetched from server this is some part of the logcat output (sorry, partly german)</p> <pre><code>--------- beginning of /dev/log/main 08-13 21:03:12.605 29031 29031 I dalvikvm: Turning on JNI app bug workarounds for target SDK version 9... 08-13 21:03:12.730 29031 29031 I appX.android.ApagerApp: onCreate() &lt;------------- 08-13 21:03:12.735 29031 29031 W appX.android.ApagerApp: Entwicklereinstellungen AUS 08-13 21:03:12.740 29031 29031 V appX.android.services.C2DMReceiver: Broadcast empfangen. 08-13 21:03:12.740 29031 29031 D appX.android.services.C2DMReceiver: Broadcast: Receive (Nachricht empfangen). 08-13 21:03:12.740 29031 29031 D appX.android.services.C2DMReceiver: LED Einstellung gesetzt, aktiviere LED 08-13 21:03:12.775 29031 29031 V appX.android.services.C2DMReceiver: Starte Verarbeitung der Nachricht. 08-13 21:03:12.775 29031 29031 I appX.android.services.C2DMReceiver: Acquiring cpu wake lock... 08-13 21:03:12.780 29031 29031 I appX.android.services.C2DMReceiver: CPU wake lock acquired 08-13 21:03:12.780 29031 29031 D appX.android.ApagerApp: alarmqueue was null, creating new one 08-13 21:03:12.780 29031 29031 V appX.android.services.GetMessageFromServer: Start now fetching message. 08-13 21:03:12.795 29031 29031 I appX.android.services.GetMessageFromServer: Internetverbindung besteht: true 08-13 21:03:12.795 29031 29031 I appX.android.services.GetMessageFromServer: ConnectionType: MOBILE 08-13 21:03:12.795 29031 29031 I appX.android.services.GetMessageFromServer: Erster Start, setze timestampOfLastAlarm auf aktuelle Systemzeit 08-13 21:03:18.825 29244 29244 I dalvikvm: Turning on JNI app bug workarounds for target SDK version 9... 08-13 21:03:19.010 29244 29244 I appX.android.ApagerApp: onCreate() &lt;------------- 08-13 21:03:19.015 29244 29244 W appX.android.ApagerApp: Entwicklereinstellungen AUS </code></pre> <p>As you can see, there is this magic line <strong><em>Turning on JNI app bug workarounds for target SDK version 9...</em></strong> which restarts the app (performs application onCreate())</p> <p>That's very bad, because at this point the app tries to do the HTTP GET.</p> <p>Does anybody know what's going on here and produces the restart? As far as I understand the issue, there are workarounds applied to provide compatibility of a newer android version (running on the phone) to the code it is compiled against right? How can I fix that? Is it intended to restart the phone?</p> <p>The class in question is <code>Java.net.httpurlconnection</code>, the app seems to restart, when that class comes into play (<code>HttpURLConnection con = (HttpURLConnection) url.openConnection()</code>)</p> <p>The user's device looks like this: release: 4.2.2 sdk_int: 17 manufacturer: samsung model: GT-I9300</p> <p>Thanks a lot!</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