In that case your intent will be delivered  to the activity in
onNewIntent() .... so implement that and extract the extra data which you
have send it through the getIntent()  method ...

Hope this helps ....

Tarun

On Tue, Sep 18, 2012 at 2:52 PM, Rahul Kaushik <rahulkaushi...@gmail.com>wrote:

> Intent startActivity = new Intent();
> startActivity.setClass(context, showrReminder.class);
> startActivity.setAction(showrReminder.class.getName());
>  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|
> Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
> context.startActivity(startActivity);
>
>
> above is the code
>  Thanks
> RK
>
> On Tue, Sep 18, 2012 at 2:52 PM, Rahul Kaushik 
> <rahulkaushi...@gmail.com>wrote:
>
>> no i am not using db, am using web services
>> Thanks
>> RK
>>
>>
>>
>> On Mon, Sep 17, 2012 at 4:46 PM, Felipe Silveira <webfel...@gmail.com>wrote:
>>
>>> Does your broadcast receiver store data in DB? If yes, your work would
>>> be simple: The activity can be notified about db changes, if it have a
>>> cursor loading the data.
>>>
>>> On Mon, Sep 17, 2012 at 7:48 AM, Rahul Kaushik <rahulkaushi...@gmail.com
>>> > wrote:
>>>
>>>> Hi,
>>>>
>>>> I have a BroadcastReceiver that's able to start an activity just fine
>>>> from its onReceive method. But what if the activity is already
>>>> running? How do I let it know that the BroadcastReceiver has some
>>>> more data for it? Do I just start the activity again? If so, would
>>>> that be a new instance of the activity? What happens to the old one?
>>>> If it doesn't create a new instance, does onCreate get called again?
>>>> If not, how does the activity know that it's been hit again by the
>>>> BroadcastReceiver? More importantly, in that case, how does the
>>>> activity get the data I attached to the intent in the
>>>> BroadcastReceiver?
>>>>
>>>> I have an listview in activity to update.
>>>>
>>>> Thanks
>>>> RK
>>>>
>>>> --
>>>> 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
>>>
>>>
>>>
>>>
>>> --
>>> Felipe Silveira
>>> http://www.felipesilveira.com.br
>>> -------------------------------------------------
>>>
>>> --
>>> 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
>>
>>
>>
>  --
> 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
>

-- 
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