tete schrieb:
I want to override the OnKeyPreIme method of a EditText got from a
findByView(int id), to make the activitiy finish() when user press back key.
You can override the back key of your activity(*), and make
the finish call dependent on the focused view, i.e. check
whether the user is inside the edit text.
Bye
(*)
public void onBackPressed ()
Added in API level 5
Called when the activity has detected the user's press of the back key.
The default implementation simply finishes the current activity, but you
can override this to do whatever you want.
http://developer.android.com/reference/android/app/Activity.html#onBackPressed%28%29
--
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