Thanks, it works now ! I had the 1.6 SDK installed. The project was not setup to use the 1.6 SDK. I deleted the project from eclipse, and create it again. This time I selected 1.6 from the menu, as the API while creating this project.
Nitin On Sep 23, 1:58 pm, "Balwinder Kaur (T-Mobile USA)" <balwinder.k...@t- mobile.com> wrote: > Then probably you are not using 1.6 SDK, because invalidateAllKeys() > is a level 4 API. I suggest you check Eclipse->Preferences->Android- > > >SDK Location. > > Balwinder Kaur > Open Source Development Center > ·T· · ·Mobile· stick together > > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > On Sep 23, 10:32 am, Nitin67 <nitin6...@gmail.com> wrote: > > > > > Hello, > > > I am working with the softkeyboard example in the SDK and I > > can't get past an error. I want to use 2 public functions in the > > KeyboardView class. It finds getKeyboard(), but invalidateAllKeys(). > > I created the code below to show the problem. I am using 1.6 SDK. > > Any suggestions would be helpful. > > > package com.example.android.softkeyboard; > > > import android.content.Context; > > import android.inputmethodservice.Keyboard; > > import android.inputmethodservice.KeyboardView; > > import android.inputmethodservice.Keyboard.Key; > > import android.util.AttributeSet; > > > public class LatinKeyboardView extends KeyboardView { > > > public LatinKeyboardView(Context context, AttributeSet attrs) { > > super(context, attrs); > > > getKeyboard(); //found > > > invalidateAllKeys(); //Not found > > } > > ... > > > Nitin- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---