1. Are you ready for the Galaxy S20? Here is everything we know so far!

Can't test my application

Discussion in 'Android Development' started by osho, Jun 5, 2010.

  1. osho

    osho Lurker
    Thread Starter


    I have just installed Eclipse, ADT and SDK. Everything works fine, no errors. I have installed also all the components.

    I did the HelloWorld tutorial :
    Code (Text):
    1. package com.example.helloandroid;
    2. import android.app.Activity;
    3. import android.os.Bundle;
    4. public class HelloAndroid extends Activity {
    5.     /** Called when the activity is first created. */
    6.     @Override
    7.     public void onCreate(Bundle savedInstanceState) {
    8.         super.onCreate(savedInstanceState);
    9.         setContentView(R.layout.main);
    10.     }
    11. }
    and run the project. My android virtual device starts, there are no compile errors and on the android screen there is only an ANDROID_ text (default screen). What I am doing wrong ?

    Thanks in advance.

  2. osho

    osho Lurker
    Thread Starter

    Sorry, I have read on another forum that it takes a wile for Android OS to start. So this problem is solved.
  3. cp1

    cp1 Android Enthusiast

    Yeah it can be a little slow starting at first. You can also connect your actual device and enable USB debugging and then it will run the app on your phone. Much cooler in my opinion.

Share This Page