On Sun, Feb 13, 2011 at 4:45 AM, Radeg <[email protected]> wrote:
> Main run Edit. Edit has onStop() method.
> onStop()
> {
> super.onStop;
> finish();
> }
>
Why are you calling finish() in onStop()?
> Edit run View. View has onKey(...) method and onStop too.
> @Override
> public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent
> event) {
> // TODO Auto-generated method stub
> if(event.getKeyCode()==KeyEvent.KEYCODE_BACK)
> {
> finish();
> }
>
> return true;
> }
>
Why are you calling finish() on pressing the back key? This is the default
behavior already.
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
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