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

Hello Android Example

 
James Hambrick
Ranch Hand
Posts: 282
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having trouble getting the HelloAndriod example to work.

Here is the link to the example I am talking about

http://developer.android.com/resources/tutorials/hello-world.html

I have copied the code verbatium.

I have added the Andriod 3.2 virtual device.

And when I created the project I created an Andriod 2.2 project.

When I run the code it shows a blank screen. Any tips? Let me know and I can supply screen shots or more information.

 
Jagadeeswara Yaramala
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too have this kind of problem.

My workaround is to click "Home" button and wait for some time. Then the "Hello World" application is displayed.
 
James Hambrick
Ranch Hand
Posts: 282
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any ideas why I have to wait ~5 minutes before it displays on the screen?
 
Jagadeeswara Yaramala
Ranch Hand
Posts: 46
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The android emulator runs slowly.

Solutions:
1) Increase the memory of elcipse in the eclipse.ini file (something like:
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m)

AND

2) Keep the emulator running after the first launch without closing it. Close it only when you are done for the day. This way, the emulator takes only seconds to update.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic