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 <[email protected]>wrote:

> no i am not using db, am using web services
> Thanks
> RK
>
>
>
> On Mon, Sep 17, 2012 at 4:46 PM, Felipe Silveira <[email protected]>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 
>> <[email protected]>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 [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
>>
>>
>>
>>
>> --
>> 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 [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
>
>
>

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