For lesser SDKs, you can hook onto the KeyListener and do some stuff.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Jun 22, 2011 at 7:40 PM, Kumar Bibek <[email protected]> wrote:

> Yes, on Activity's onBackPressed() method. Although it is available beyond
> API level 5 (ie, 2.0) and up.
>
> *Thanks and Regards,
> Kumar Bibek*
> *
> http://techdroid.kbeanie.com
> http://www.kbeanie.com*
>
>
>
>
> On Wed, Jun 22, 2011 at 7:36 PM, New Developer <[email protected]> wrote:
>
>> You can press the  "Android" Back Button  and go back from  Screen B  ->
>> Screen A  or Activity B back to Activity A
>>
>> Is there anyway to catch that and get an Are You Sure ?? dialog before
>> just going back and losing all data on screen B ?
>>
>> Thanks in advance
>>
>> --
>> 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