how to get current location of user in IntentService in Android?

view story

http://stackoverflow.com – This what i'm trying to do. I have main Activity calling BroadcastReceiver name SmsAlarmReceiver. Intent i = new Intent(SmsAlarmReceiver.ALARM_ACTION); sendBroadcast(i); Now my SmsAlarmReceiver.java looks like: public class SmsAlarmReceiver extends BroadcastReceiver { LocationManager locationmanager; public static final String ALARM_ACTION= "com.example.finaltracking.SMS_REC"; @TargetApi(Build.VERSION_CODES.GINGERBREAD) @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub locationmanager = (LocationManager) context.getSystemService(C (HowTos)