Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old April 30th, 2009, 08:40 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2009
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't seem to get hello world app to run right, help?

Hi. I never thought of myself as an idiot but I seem to be at a crossroads of competency in trying to get "Hello World" to display.

I've followed the tutorial for hello world in eclipse using the plugin. It all seems to work fine, but when I press run as android application an emulator pops up (it looks like a big cheesy phone) and just says "Android _" .... nothing more. I tried some trouble shooting tips that involved killing the emulator process

  1. Quit the emulator if it is running
  2. Check that any emulator processes are killed (sometimes they can hang, use ps on unix or mac, or task manager in the process view on windows).
  3. Quit Eclipse
  4. From the command line, type: adb kill-server
  5. Start Eclipse and try again

but it's done nothing to help me. I'm pretty frustrated because apparenly my google skills are slipping and can't seem to find any one who had a similar problem.

The source for my hello world app is:
package com.android.test;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class myTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}

Advertisements
skelooth is offline  
Reply With Quote
sponsored links
Old April 30th, 2009, 09:35 PM   #2 (permalink)
Junior Member
 
Graham's Avatar
 
Join Date: Mar 2009
Location: Australia
Posts: 89
 
Device(s): Desire HD, Nexus One, G1, Eken tablets
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does the emulator boot if you go to the command prompt and type: emulator
Graham is offline  
Reply With Quote
Old May 1st, 2009, 05:38 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2009
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, it does, and it does the same exact thing (just sits there saying android _)

emulator -avd my_avd
Attached Images
File Type: jpg screeny.jpg (44.9 KB, 2 views)
skelooth is offline  
Reply With Quote
Old May 1st, 2009, 08:25 AM   #4 (permalink)
Senior Member
 
Join Date: Feb 2009
Location: London, UK
Posts: 642
 
Device(s): T-Mobile G1 (UK), HTC Desire Z
Carrier: Not Provided

Thanks: 0
Thanked 10 Times in 9 Posts
rozza.c@gmail.com
Default

Quote:
Originally Posted by skelooth View Post
Yes, it does, and it does the same exact thing (just sits there saying android _)

emulator -avd my_avd
Exactly how long are you waiting....

Because from my experience..it takes a good few minutes for it to actually start up and show the home screen...
RozzaC is offline  
Reply With Quote
Old May 1st, 2009, 08:33 AM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2009
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by RozzaC View Post
Exactly how long are you waiting....

Because from my experience..it takes a good few minutes for it to actually start up and show the home screen...
I waited for a good 5-10 minutes (at least long enough for a bathroom trip and to get a drink). I also have a moderately fast/modern computer. I finally found another post similar to mine and they said they had to run it in xp compatability mode, I'm going to try that when I get home, but I'm still open to any other suggestions
skelooth is offline  
Reply With Quote
Old May 1st, 2009, 09:09 AM   #6 (permalink)
Senior Member
 
Join Date: Feb 2009
Location: London, UK
Posts: 642
 
Device(s): T-Mobile G1 (UK), HTC Desire Z
Carrier: Not Provided

Thanks: 0
Thanked 10 Times in 9 Posts
rozza.c@gmail.com
Default

Quote:
Originally Posted by skelooth View Post
I waited for a good 5-10 minutes (at least long enough for a bathroom trip and to get a drink). I also have a moderately fast/modern computer. I finally found another post similar to mine and they said they had to run it in xp compatability mode, I'm going to try that when I get home, but I'm still open to any other suggestions
You running Vista or XP ?
RozzaC is offline  
Reply With Quote
Old May 1st, 2009, 09:45 AM   #7 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2009
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by RozzaC View Post
You running Vista or XP ?
Vista Ultimate 64 on a core2 quadcore and plenty of ram. If I continue with misfortune I might just switch back to ubuntu or something. Unfortunately the computer came with a software raid, and gparted and the ubuntu installer don't want to play nice for me.
skelooth is offline  
Reply With Quote
Old May 1st, 2009, 09:57 AM   #8 (permalink)
Senior Member
 
Join Date: Feb 2009
Location: London, UK
Posts: 642
 
Device(s): T-Mobile G1 (UK), HTC Desire Z
Carrier: Not Provided

Thanks: 0
Thanked 10 Times in 9 Posts
rozza.c@gmail.com
Default

Quote:
Originally Posted by skelooth View Post
Vista Ultimate 64 on a core2 quadcore and plenty of ram. If I continue with misfortune I might just switch back to ubuntu or something. Unfortunately the computer came with a software raid, and gparted and the ubuntu installer don't want to play nice for me.
Ah...64-bit Vista...

You may have to use compatibility mode...

I've never tried 64-bit so I can't tell you anyhing about it...
RozzaC is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:39 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.