Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse unable to show class and methods

 
Tim Lim
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I fairly new to android. While I am trying to learn, I notice there is a problem. See attached.
Say for example, I want to instantiate a Bundle class and I want to use the methods.
Unfortunately, it is not showing me methods that comes with the class. Hence the only way I can do is to look at the api and then see what are the methods.
Is there a way to allow Eclipse to show the class/method?
Another point to take note is that, Eclipse sometime cannot provide suggestion as to which class to import. For example,
say I am using Bundle class, Eclipse cannot provide the necessarily import and give me the option to create a new class. While I can type manually the import of Bundle class,
I feel it will be nice to have eclipse to import the class for me without having me to manually type in.

So how am I going to resolve it? Thanks.

 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on your description I suspect that the necessary JAR files (the one containing the Bundle class in this example) are not included within your project. What kind of project did you create? If you create an Android project then the Android JARs (actually, mock JARs) should already be included. Also check that Eclipse is referencing the Android SDK - it is in Windows | Preferences | Android.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic