Hi All,

I am try to post message with the help of sendBroadcast() API. But its
carshing.
Please find the piece of code as below:

                  public static final String UICbkdAction = new String
("android.intent.action.UICbk");
                  protected IntentFilter CallbackFilter = new
IntentFilter(UICbkdAction);

               CallbackReceiver=new IntentReceiver();
                registerReceiver(CallbackReceiver, CallbackFilter);

                Intent scan = new Intent(UICbkdAction);
                Bundle b=new Bundle();
                b.putInt("CbkType", ServerAdded);
                b.putString("resp", text);
                //b.putBoolean("result", ret_val);
                scan.putExtras(b);

                sendBroadcast(scan);  ------------->crashing with NULL
pointer exception

         class MyIntentReceiver extends BroadcastReceiver
        {
                @Override
                public void onReceive(Context context, Intent intent)
                {
                            //doing something
                }
         }

Please help me..

Thanks in advance,
Yogi
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to