• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Android newbie's problem

 
Goran Markovic
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
 
Ankit Garg
Sheriff
Posts: 9509
22
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....
 
David O'Meara
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
 
James Elsey
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic