Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid SMS receiver not working in ICS even after app started
    primarykey
    data
    text
    <p>This might look like a duplicate issue at first, however I'm aware of the <a href="http://developer.android.com/about/versions/android-3.1.html#launchcontrols" rel="nofollow noreferrer">change</a> in Android 3.1 that requires apps to be in started start to receive broadcasts and this related <a href="https://stackoverflow.com/questions/8319987/sms-received-not-working-on-ice-cream-sandwich?rq=1">question</a>. Maybe it's a school boy error I'm not seeing. But this works a treat on Android 2.3, and <strong>other receivers are working</strong> (i.e. android.net.wifi.SCAN_RESULTS). On Android 4.0.4, Galaxy Nexus. </p> <p>The functionality I'm trying to get working on ICS: install > launch > if no user details send text via sms app > SmsReceiver checks incoming reply and populates login details (saving the user copy and pasting) </p> <p>What am i missing? </p> <p>Manifest</p> <pre><code>&lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:hardwareAccelerated="true" &gt; &lt;receiver android:name="com.myapp.android.receivers.SmsParserReceiver" android:enabled="true" android:exported="true" &gt; &lt;intent-filter android:priority="3000"&gt; &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; </code></pre> <p>Receiver:</p> <pre><code>package com.myapp.android.receivers; public class SmsParserReceiver extends BroadcastReceiver { public SmsParserReceiver() { QLog.i("SmsParserReceiver created"); } @Override public void onReceive(Context context, Intent intent) { QLog.i("Smsintent recieved: " + intent.getAction()); } } </code></pre>
    singulars
    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.
 

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