1. Check out our companion app, Forums for Android! Download from Google Play

Can't test my application

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

  1. osho

    osho New Member
    Thread Starter
    5

    Jun 5, 2010
    3
    0
    5
    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
    Thread Starter
    5

    Jun 5, 2010
    3
    0
    5
    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
    53

    Apr 30, 2010
    375
    35
    53
    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...