Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Eclipse unable to show class and methods

 
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.

 
author
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.
 
I need a new interior decorator. This tiny ad just painted every room in my house purple.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!