To ALL:
I want to write a home button function test application .
When activity restart again , I can know button function is work
correctly .
it`s OK now,follow is my code:
Intent i = new Intent(context, Main.class);
i.setAction(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_LAUNCHER);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);
Thanks all.
On 9月23日, 下午10時45分, Bret Foreman <[email protected]> wrote:
> Why not just pop up some toast? That's what it's for.
--
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