Override onBackPressed() and change the visibility. Be sure to allow
the user to eventually exit the activity, though.

On Sat, Oct 1, 2011 at 9:16 AM, Belgi <belgiamir...@gmail.com> wrote:
> Hi,
> In my app I have a button that once clicked a text box appears on the
> screen (I'm using the setVisibility to implement this, I change it
> from GONE to VISIBILE).
> the problem I have is that when the user presses the BACK button on
> the device than it exits the app,
> I want it to call my code that will change the visibility of the text
> box, is it possible?
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.1 Programming Books: http://commonsware.com/books

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to