Android getting started


Last Updated:

  1. shariefbe

    shariefbe Member This Topic's Starter

    Joined:
    Aug 17, 2009
    Messages:
    5
    Likes Received:
    0
    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

    Joined:
    Oct 19, 2009
    Messages:
    33
    Likes Received:
    0
    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 This Topic's Starter

    Joined:
    Aug 17, 2009
    Messages:
    5
    Likes Received:
    0
    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

    Joined:
    Oct 19, 2009
    Messages:
    33
    Likes Received:
    0
    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 This Topic's Starter

    Joined:
    Aug 17, 2009
    Messages:
    5
    Likes Received:
    0
    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

    Joined:
    Oct 19, 2009
    Messages:
    33
    Likes Received:
    0
    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

    Joined:
    Oct 21, 2009
    Messages:
    7
    Likes Received:
    0
    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 This Topic's Starter

    Joined:
    Aug 17, 2009
    Messages:
    5
    Likes Received:
    0
    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

    Joined:
    Oct 19, 2009
    Messages:
    33
    Likes Received:
    0
    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...