Why develop apps for Android?
Android is an open-source OS installed on thousands of device and it exposes its apps to all modern devices including from smartphones, watches to microwave ovens. Also there are some advantages for developers for creating apps with android. Android Software Development Kit (SDK) is available for free and compatible for Windows, Linux and Mac.
You can create Android apps in two ways. By creating an html5 web app and convert it into native android platform using cross platform tools like Intel XDK and Adobe Phonegap or use Eclipse to start writing your very own application.
First things first!
- Eclipse and some ADT plugin
- Android SDK Tools
- Android Platform-tools
- The latest Android platform
- The latest Android system image for the emulator
Unzip this bundle to any folder and navigate to eclipse folder and start Eclipse application. If you are stuck here, install it step by step from developer website. On first start of eclipse, select a folder for workspace i.e. place to save Android projects. After successfully launching Eclipse. Click “New” from toolbar and select Android Application Project, This will take to New Android app project wizard as shown below.
Type in your app name. This is visible to end users.
- Give a project name as you wish.
- Package Name follows some rules same as packages in the Java programming language. Hover to yellow warning badge to see the rules to obey.
- Choosing a unique name as Package name is must.
- There are two sdk levels to be entered in the wizard window. “Minimum Required SDK” is Minimum version of android OS that app supports. By selecting it to lowest, your app supports maximum number of devices.
- Similarly “Target SDK” is the highest version of Android with which app can work smoothly. By default, this will be set to the latest version available in sdk folder.
- Choose any themes from “Theme” dropdown and click Next.
You have to leave all default selections as such in next step and select any of template already available. Template varies according to minimum sdk level selected earlier. Click finish to complete this wizard.
There are many drag and drop items like Text, Buttons and other items like spinners. Try some of them in our own and get familiarized with various items and buttons present there. So these are the basic steps for getting started with Android development. You can learn about resource files, activities and xml layouts to create a sample Application in our next posts .