1. HUGE Androidforums.com UPDATE! Learn what's new (and download the new app!)
    Dismiss Notice

Hello Android Not working

Last Updated:

  1. jplamb

    jplamb Well-Known Member This Topic's Starter

    Oct 8, 2009
    Likes Received:
    I am trying to get the hello android code working and am not having any luck. There are a few things that are different.

    When i load Eclipse with a new project the code that is already there looks like this;
    when the developers site stays it should look like this (I cahnaged the package name to helloandroid2 as i made a mess of the first one so started again)

    After i have entered the code which is on the developers site it looks like this

    When the site says it should look like

    package com.android.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. */
    public void onCreate(Bundle savedInstanceState) {
    TextView tv = new TextView(this);
    tv.setText("Hello, Android");


    I am not sure which version of the code i should be using, When i run the emulator it takes a bit of time to load and then comes up with the homescreen.

    when i try to run the app in Eclipse it says. "no compatible Targets were found. Do you wish to add a new Android Virtual Device?"

    I click yes it comes up with the options for a new device and if i click no it comes up with the AVD's that i have previously made, when i select one and tell it to start this is when it comes up with the Homescreen.

    I am using the lasest version of Eclipse ( i think) i got it from the website

    and i have downloaded the Android SDK and AVD Manager and updated them both to have all of the packages.

    Any help on how i can get this to work would be great, Thank you for reading


  2. lexchandra

    lexchandra Member

    Sep 6, 2010
    Likes Received:
    the emulator is slow, but the code should be alright..

    have you created an AVD? maybe that is the problem

Share This Page