Quote:
Originally Posted by rajathslr
I am an absolute Nube...with no professional experience....but pls don neglect me....
I just wanted to ask how you figured out the particular import statement...
Where can i get the documentation for different import packages...??
and how long its been since u started programming android....?
please
|
I'm going to assume that you're using the Eclipse IDE.
After you type this line:
Code:
myEditText.setOnKeyListener(new OnKeyListener()
you should see little squiggly red lines below it.
Put your mouse pointer over the OnKeyListener() term and you should see a tool tip pop up.
Choose the option "import onKeyListener(android.view.View)" and that should take care of the issue by adding the "import android.view.View.OnKeyListener;" to the header.
If you get another error regarding the onKey function, refresh (F5) your project.