This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hello Android Example  RSS feed

 
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
Boost this thread!