Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For getting latitude and longitude when you have recived an sms on device you will need these steps:</p> <p><strong>STEP 1:</strong> Register an <code>android.provider.Telephony.SMS_RECEIVED</code> BroadcastReceiver for receiving incoming sms notification:</p> <p>for this you can use following Tutorial :</p> <p><a href="http://androidsourcecode.blogspot.in/2010/10/receiving-sms-using-broadcastreceiver.html" rel="nofollow noreferrer">http://androidsourcecode.blogspot.in/2010/10/receiving-sms-using-broadcastreceiver.html</a> <hr/> <strong>STEP 2:</strong></p> <p>for retrieving location on sms received you will need to start an service (<code>IntentService</code>) in onReceive of SMS BroadcastReceiver as:</p> <pre><code>public class SmsReciever extends BroadcastReceiver { private static final String TAG = "Message recieved"; @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals("android.provider.Telephony.SMS_RECEIVED")) { // Start your Location IntentService here Intent i = new Intent(context, Location_Intent_Service.class); context.startService(i); } } } </code></pre> <p><hr/> For How We use <a href="http://developer.android.com/reference/android/app/IntentService.html" rel="nofollow noreferrer">IntentService</a> you can see following tutorial:</p> <p><a href="http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/" rel="nofollow noreferrer">http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/</a></p> <hr/> <p>For how we Use <a href="http://developer.android.com/reference/android/location/LocationManager.html" rel="nofollow noreferrer">LocationManager</a> from Service class you can follow these Post:</p> <p><a href="https://stackoverflow.com/questions/8672736/starting-locationmanager-as-service-android">Starting LocationManager as Service Android</a></p>
    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.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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