This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Android newbie's problem  RSS feed

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have just start to develop android, and I just cannot start my Hello World application.
I have followed instructions about android installation, I have changed several Eclipse IDE's, but still, when I press f11 to compile, it 'does' some job int he background, activate my virtual device, but wont to behave just as it should!
Only " Android . . . " is displayed on the screen, which mean that my class isn't 'loaded', somehow.
This is sample class :


And, also main.xml file, which reflect contains xml representation of display window :
main.xml :


then, strings.xml :


AndroidManifest.xml :



and default.properties file :


Just as I said, I did install everything I needed (SDK, ADT plugin, etc...), but it still wont work
I appreciate any help!
Thanks
 
Sheriff
Posts: 9613
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Slobodan at a glance everything looks fine to me. How long did you want for the simulator to boot up?? It can take 2-3 minutes to boot on old machines...
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ankit.
It takes only a few seconds, and emulator appears, displaying - "ANDROID_" (where underscore continuously blink). Emulator doesn't respond to any button pressing.
Now I am downloading MOTODEV IDE, to try it.
Just as I said, I have downloaded several Eclipse distribution, and permute at any way I could (SDK version, different emulators,etc..) but it wond work
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded MOTODEV, but the behavior is the same.. I just do not understand....
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sounds like a problem with the virtual device and not necessarily the application.
Have you tried creating a new one to test the app?
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It breakthrough somehow!
Do not how, but it starts working...I was messing with various type of emulators, and it works (just need to figure out what tpe of emulator I chose, because I tried every )
Thanks for your time and patience...

Regards
 
Ranch Hand
Posts: 228
Android IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found similar behaviour, sometimes I can load up my application, sometimes I can't

One thing I will suggest, is don't rely on F11 to run it. Its best (in my experience) to right click your project and select "Run as Android", as when I used F11 Eclipse was trying to do something else

Good luck!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!