tags:

views:

105

answers:

4

I created Hello,Android application with TextView, not xml. When I run it I don't see "Hello,Android", only wallpaper. Any ideas, what is wrong?

A: 

I guess you are using Eclipse so the first question is Do you have an android phone connected to the computer? If so the "Hello, Android"-program will hopefully be running on that.

Burbas
+1  A: 

need a little more info, is eclipse (assuming your using this) recognizing either the emulated device or real device, also like mbaird mentioned would need to see the code.

Pete Herbert Penito
+2  A: 

It takes up to 2 minutes to have the run app rendered. Don't worry, just be patient.

You can leave the emulator running and run the app over and over again so it will not take that long after the first time.

I also found that starting the emulator from the command line is a lot faster, and you can just leave it running, and run the app from Eclipse; this way starting the app will not take long at all since your emulator has been running already.

I hope above is helpful...

xueru
Good comment, had the same problem (impatience)
Mads Jensen
A: 

hi, i have the same problem, i can't resolve it. See my code:

   package com.example.helloandroid;

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


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