Can't test my application


Last Updated:

  1. osho

    osho New Member This Topic's Starter

    Joined:
    Jun 5, 2010
    Messages:
    3
    Likes Received:
    0
    Hello,

    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.
     

    Advertisement
  2. osho

    osho New Member This Topic's Starter

    Joined:
    Jun 5, 2010
    Messages:
    3
    Likes Received:
    0
    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 Well-Known Member

    Joined:
    Apr 30, 2010
    Messages:
    375
    Likes Received:
    35
    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

Loading...