[android-developers] Re: start Activity in reciver class
Hello Vinod,
You can start and activity onReceive() method of Broad cast receiver.
but you need to add one FLAG_ACTIVITY_NEW_TASK flag.
since onReceive() is excuting in platform context.
check the following code snippet.
onReceive() (
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
}
Regards
Ajay kakumanu
On Nov 18, 3:24 pm, booooooooooooo <yada...@gmail.com> wrote:
> Hi all,
> this is vinod i have been saving problem while i am starting
> Activity in reciver
> so i would know this is the way or not for start activity in reciver
>
> regards
> vinod
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home