What does it say in the system log?

On Wed, Apr 15, 2009 at 11:11 AM, Yogi <[email protected]> wrote:
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to