Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse unable to show class and methods

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic