http://developer.android.com/reference/android/content/Context.html#registerReceiver%28android.content.BroadcastReceiver,%20android.content.IntentFilter%29
Just use Context's registerReceiver(), e.g. from your application's onCreate(). Remember to unregister the receiver, from an activity the lastest point to unregister would be in onDestroy. registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { // Do something } }, new IntentFilter("SOME INTENT")); On Dec 22, 9:01 am, surabhi jain <surabhi17.j...@gmail.com> wrote: > hiiiiiiii, > > I want to send sms but register receiver dynamically. > > plz send me the source code. > > Thanks to all. -- 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