Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Hello Android Example

 
Ranch Hand
Posts: 282
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
This will take every ounce of my mental strength! All for a tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic