Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid receive sms only works in emulator (onReceive not called?)
    text
    copied!<p>Iam coding a little gps tracker wo sends me the gps coordinates when it receives a sms.</p> <p>It works with 2 emulators and I get the message with the gps coordinates.</p> <p>Then I tried it on my HTC Desire and send myself an sms.</p> <p>But nothing happend! Normally when the onReceive is called it shows a message with toast and sends an sms with gps coordinates but nothing is happening ;-/</p> <p>Here the manifest: </p> <pre><code>&lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt; &lt;activity android:name=".GPSActivity" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;receiver android:name=".SmsReceiver" android:enabled="true"&gt; &lt;intent-filter&gt; &lt;action android:name= "android.provider.Telephony.SMS_RECEIVED" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; &lt;/application&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.SEND_SMS"/&gt; &lt;uses-permission android:name="android.permission.RECEIVE_SMS"/&gt; </code></pre> <p></p> <p>any ideas?</p> <p>Ps.: The code is in my last thread <a href="https://stackoverflow.com/questions/7724685/android-locationmanager-null-pointer-exception-how-to-pass-the-context">HERE</a></p> <p>THANKS!</p>
 

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