How to begin Android development

Droid Devices & Apps
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

How to begin Android development

Post by Neo » Tue Jan 18, 2011 2:56 am

1.jpg
1.jpg (51.3 KiB) Viewed 14474 times
Like the iPhone OS and most other mobile operating systems, developers can typically access an emulator in order to test out apps on their computer before on an actual device. This is made possible via the SDK (Software Development Kit), which is also where devs access the tools and resources necessary to build apps. Unlike the iPhone OS SDK and Microsoft’s SDK, thankfully the Android SDK is available for both Windows and Mac.

Here’s what you will need to do to access the Android 2.2 Froyo Emulator:
  1. First download the Android SDK for either Mac or Windows
  2. Once you have downloaded the SDK, extract it. This will give you a list of files and folders as shown in the image below.
    21.jpg
    21.jpg (13.1 KiB) Viewed 14474 times
  3. Next you will have to start the SDK manager app by opening an app or script called “Android” from within the Tools folder.
  4. Now the Android SDK and AVD Manager window will appear. In the left column of this window, click the Available Packages button. Now you will be able to download the repository, which will provide you with more download options.
    2.jpg
    2.jpg (59.5 KiB) Viewed 14474 times
  5. Once the new download list appears, you will want to select the items shown in the image below, which include some necessary resources and tools as well as the OS itself.
    3.jpg
    3.jpg (22.23 KiB) Viewed 14474 times
  6. Now you will have to navigate to the “Virtual Devices” window from within the left column of the Android SDK and AVD Manager. Once you’re there, select New on the right side of the window.
  7. Now you are within the “Create new Android Virtual Device (AVD)” window, which is where you will configure your Android emulator or virtual environment. You can fill out these settings to your preferences. Keep in mind that you will want to make sure Android 2.2 – API Level 8 is selected under Target. You will also want to select a screen resolution that works best for your display.
    4.jpg
    4.jpg (44.74 KiB) Viewed 14474 times
  8. Once you have configured the emulator to your liking, click Create AVD and wait for the process to complete.
  9. Now, from within the Android SDK and AVD Manager window you will see the emulator or AVD you have just created in Virtual Devices in the left column of the manager window. Now you can simply select the AVD you have created and click Start.
    5.jpg
    5.jpg (35.86 KiB) Viewed 14474 times
    The emulator should open automatically and you will be able to try out Android Froyo!
    6.jpg
    6.jpg (53.43 KiB) Viewed 14474 times
    Note: This is of course an extremely early build of Android Froyo and is missing many of the components you may expect. You will not be able to run Google Maps for instance. You will also not be able to try out Flash in the emulator. However, Gizmdo notes that Google offers the following instructions for downloading Android apps being distributed independently.
How to Develop Android Applications
  1. Download a development tool called Eclipse (you want the IDE for Java Developers at this link)
  2. Install the Android Development Toolkit in Eclipse

    http://developer.android.com/sdk/eclipse-adt.html
  3. Point the ADK to the directly where you’re keeping your Android SDK files (the same place where you extracted the SDK earlier, unless you moved it)
  4. Import and run Android apps. (You’ll have to search the internet for Android apps you want to try. The file format is .apk, and many sites host them independently of the Android market.)
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Re: How to begin Android development

Post by Nipuna » Tue Jan 18, 2011 9:53 am

Cool another Great Work from Buddy Neo :)
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: How to begin Android development

Post by Neo » Tue Jan 18, 2011 11:18 am

If you can make Android apps, you can publish on their market place for a reasonable price and become a millionaire very easily. Start investigating essential apps that are available on Java & Symbian and not available on Android yet. It is likely that people people search for them.
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Re: How to begin Android development

Post by Nipuna » Tue Jan 18, 2011 11:50 am

Cool idea buddy :)

I will think of that after I learn Java well.

Because I've Just started BIT, and Don't have Much Knowledge :)
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: How to begin Android development

Post by Neo » Tue Jan 18, 2011 12:07 pm

There is something called Android Native Development Kit (NDK) which allows you to write programmes for Android using C/C++.

Android itself uses the Linux kernel, written in C. The Davlik VM, as well as the JRE, are written in C++. So it is C/C++ which plays the real role there. However develop applications using Java to Android could be much easier than with C/C++.

All parts in Red, Greed and Orange are 100% written in C/C++. Most of the parts in Application framework are also written in C++. Users can write Applications using Java (or C++) to Android as represented in the top most layer.
system-architecture.jpg
system-architecture.jpg (194.02 KiB) Viewed 14434 times
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Re: How to begin Android development

Post by Nipuna » Tue Jan 18, 2011 12:58 pm

Cool

But i didn't finish reading even the C++ Tutorial :)
pakeeza1990
Corporal
Corporal
Posts: 5
Joined: Wed Jan 26, 2011 10:26 am
Location: islamabad , Pakistan

Re: How to begin Android development

Post by pakeeza1990 » Wed Jan 26, 2011 10:42 am

thank you very much for such kind of information it has so much knowledgeable for me
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Re: How to begin Android development

Post by Nipuna » Wed Jan 26, 2011 11:35 am

Hey pakeeza1990

Welcome to Expertcore
pakeeza1990
Corporal
Corporal
Posts: 5
Joined: Wed Jan 26, 2011 10:26 am
Location: islamabad , Pakistan

Re: How to begin Android development

Post by pakeeza1990 » Wed Jan 26, 2011 11:46 am

thanks for your Welcoming me in this forum
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Re: How to begin Android development

Post by Nipuna » Thu Jan 27, 2011 4:33 pm

pakeeza1990 wrote:thanks for your Welcoming me in this forum

You are welcome

We Hope you will Get most Out of Expertcore :)
Post Reply

Return to “Android”