In the code below the sendSMS should be running in a background thread can i use the AsyncTask class for this purpose....I saw a similar AlarmReceiver class where it uses locks for acquiring and releasing...http://pastie.org/403831
Should locks be used here also..???...will putting the sendSMS() in doinBackground() function of AsyncTask serve my purpose of running it in a background thread...??? public class SMSReceiver extends BroadcastReceiver { public void onReceive(final Context objContext, final Intent objIntent) { if(name.equalsIgnoreCase("NoSuchUser")) { smsSender.sendSMS(); return; } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---