Saturday, May 15, 2010

[android-developers] Re: Send Data to a running app

You can set single instance for an activity to ensure more than one
won't exist. And in the activity's onNewIntent handle the new intent.

On May 15, 11:50 am, Ne0 <liamjamesalf...@googlemail.com> wrote:
> I have a broadcast reciever the looks at SMS's, when it recieves an
> SMS that is destined for my application it needs to send some data to
> an activity or start the avitivty if it isnot running.
>
> How do i find out if the activity is running and send data to it if it
> is? I know i can use StartActivity and stuff the intent with the data
> i want to send to it but if i start the activty that is already
> running, another instance of it will be created (wont it?) .
>
> Thanks for any info.
>
> Ne0
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment