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

Android getting started

Discussion in 'Application Development' started by shariefbe, Oct 19, 2009.

  1. shariefbe

    shariefbe Member
    Thread Starter
    25

    Aug 17, 2009
    5
    0
    25
    Hi friends,
    I have learned the android developers guide to get start my new android emulator. But after completing the new project wizard i dont know what to do? Can anyone help me what to do to start an emulator in eclipse?
     

    Advertisement

  2. metter

    metter Active Member
    15

    Oct 19, 2009
    33
    0
    15
    Hey

    Window -> Android SDK and AVD Manager

    There crate a new Virtual Device. Give it a name & API Level. If youre not developing something that needs an SDCard, leave that empty. Skin to default.

    Then Right Click on your project -> Run As -> Android Application


    Cheers
     
  3. shariefbe

    shariefbe Member
    Thread Starter
    25

    Aug 17, 2009
    5
    0
    25
    ok i have created the virtual device and i have given the name and API level. But i didnt find this "Right Click on your project -> Run As -> Android Application"
    where it is?
    i didnt find any Run As option under projects tab. what to do?
     
  4. metter

    metter Active Member
    15

    Oct 19, 2009
    33
    0
    15
    Window -> ShowView -> PackageExplorer.

    Now the package explorer shows your project structure. Right click on your projects name there and select runas.
     
  5. shariefbe

    shariefbe Member
    Thread Starter
    25

    Aug 17, 2009
    5
    0
    25
    yes it works fine. i got the emulator. But i have an big doubt. how this hello world comes? i didnt write ant program and didnt even copy it. then how it happens?
     
  6. metter

    metter Active Member
    15

    Oct 19, 2009
    33
    0
    15
    setContentView(resource)

    Hello World is defined in resource.xml

    ...

    Now it's time for you to read up on Android instead of posting a question for every little thing you encounter.


    Cheers.
     
  7. serdaraytac

    serdaraytac Member
    5

    Oct 21, 2009
    7
    0
    5
    Application Development Spec.
    Istanbul
    if you want only add on java code

    TextView txtv = new TextView(this);
    txtv.setText("Hello Android");
    setContentView(txtv)


    got it !
     
  8. shariefbe

    shariefbe Member
    Thread Starter
    25

    Aug 17, 2009
    5
    0
    25
    ok is it nessary to learn java to do android development?why?java is only the UI for android right? If i want to develop the android kernel part..what should i do?
     
  9. metter

    metter Active Member
    15

    Oct 19, 2009
    33
    0
    15
    Linux -> Java VM -> Android

    If you want to write applications for Android, you'll have to learn Java.
    You may write libraries in C though, I have never done that however.
     

Share This Page

Loading...