yeah it's good for me.......
tanks

On Thursday, August 2, 2012 11:18:47 AM UTC+5:30, Bharath Smitha wrote:
>
>
>
> On Thu, Aug 2, 2012 at 10:42 AM, Kristopher Micinski <
> [email protected]> wrote:
>
>> ...
>>
>>   -- You cannot "exit" the app gracefully.  This is an antipattern.
>>   -- You cannot catch the homekey.  This is an antipattern.
>>
>> ...
>>
>> On Thu, Aug 2, 2012 at 12:46 AM, Sadhna Upadhyay
>> <[email protected]> wrote:
>> > Hi everyone,
>> >     can any one tell me how to exit from app when someone click on home 
>> key
>> > of android device,
>> >
>> > --
>> > 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
>>
>
> u can do it by using this below code but  again if u launch the app it 
> starts with same activity.so u can call finish() with this.
>
> Intent intent = new Intent(Intent.ACTION_MAIN);
>      intent.addCategory(Intent.CATEGORY_HOME);
>      intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>      startActivity(intent);
>
> reply me if it was helpful to u.
>
>
>

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