tete wrote: > No, i [sic] couldn't resolve it. > > Sorry. >
Maybe an SSCCE would help generate answers. http://sscce.org/ The problem is that you gave no information about your problem, other than you got a 'ClassCastException'. Casting what to what? How were things declared? ... generated? You overrode what with what? How did you tell Android to use the new type? -- Lew Greg Mayworm wrote: > I am having the same result. Did you resolve this issue? >> >> >> On Monday, May 28, 2012 7:22:57 PM UTC-5, tete wrote: >>> >>> Hello people, >>> >>> 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. >>> >>> The only way I thought is creating a custom EditText and overriding >>> OnKeyPreIme, but when I tried to cast the EditText of my view in my custom >>> EditText, it throws a ClassCastException >>> >> > -- 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

