1

Update widget after sms receive

view story
linux-howto

http://stackoverflow.com – i'm having some trouble about this operation. I have a widget that update some things. When arrive an sms , i wanna update it after receiving. I have written a BrodCastReceiver Class, but it update before arrive. public class SmsReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { //---get the SMS message passed in--- Bundle bundle = intent.getExtras(); SmsMessage[] msgs = null; if (bundle != null) { //---retrieve the SMS message received--- Object[] pdus = (Object[]) bundle.get("pdus"); m (HowTos)