Hi Ray,

The Activity and Service classes are subclasses of Context. So you can refer
to the Context object by using the "this" object reference in OnCreate()
method of you Activity or Service.
Also, you would use broadcastIntent() if you want an IntentReceiver in the
other application to receive the data, but if you want an Activity in the
other application to receive that data you can use startActivity()(with
NEW_TASK_LAUNCH flag) instead. In both cases you will make an Intent object
and put data in its Extras bundle.

Thanks,
Megha

On Thu, Apr 10, 2008 at 11:52 AM, Ray <[EMAIL PROTECTED]> wrote:

>
> Hi Everyone,
>
> I'm trying to write a little app that passes information from one
> program running on the android framework to another. I figure the way
> to do this is to make an intent and bundle up the data I want into the
> Intent and broadcast it out with this:
>
>
> http://code.google.com/android/reference/android/content/Context.html#broadcastIntent(android.content.Intent)<http://code.google.com/android/reference/android/content/Context.html#broadcastIntent%28android.content.Intent%29>
>
> But I can't figure out how to make a context so I can't call this
> method! Any help would be appreciated.
>
> Thanks,
> Ray
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to