What is the stack crawl?
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
> >
>
--
Dianne Hackborn
Android framework engineer
[email protected]
Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---