Wednesday 24 July 2013

Android Simple Hello World Application

Andrid Hello World

Steps to Create Above like HelloWorld Application in Android
  1. Create New > Android Application in Eclipse android will create all necessary files and configuration.
  2. Give name of your application HelloWorld as per java standard
  3. Modify Your main.xml file as given below

     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"  
       xmlns:tools="http://schemas.android.com/tools"  
       android:layout_width="match_parent"  
       android:layout_height="match_parent"  
       tools:context=".MainActivity" >  
       
       <TextView  
         android:layout_width="wrap_content"  
         android:layout_height="wrap_content"  
         android:layout_centerHorizontal="true"  
         android:layout_centerVertical="true"  
         android:textSize="30dp"  
         android:text="Hello world" />  
       
     </RelativeLayout>  
    
  4. Now Build and Run project in Android Virtual Device(AVD)


Download HelloWorld Source Code




My Android Applications

Download Hanuman HD Wallpaper on Google Play

Download Live Currency Exchange Rates on Google Play

Download iSIM Info on Google Play

Download Find Droid on Google Play

Wednesday 17 July 2013

How to Create Android Project in Eclipse IDE

This post teach you how to create new android project in Eclipse IDE. For creating android project you have must set up Eclipse Android Development Environment if you have already set up Android Development Environment directly Go through below step otherwise follow This Post

Follow few below steps to Create New Android Application/Project :

  1. Select File > New > Android Project
  2. After Selecting Android > Android Project > Click Next
  3. Now You need to specify below all application content
    • Application Name : Simply name of your Application.
    • Package Name : Provide package name as identifier of your project as well as organization Example : com.idroid.livecurrencyexchange all character must be small because it is follow naming conversation of Java
    • Create Activity (Optional): Name of your launcher activity name which is called first when your project runs Example : MySampleApp. It is also follow java class naming conversation.
    • Min SDK Version : Minimum API Version in which your application properly run and also run on above version.If it is blank than system automatically defines minSdkVersion in you Manifiest file.
  4. Click Finish your new android project created.



My Android Applications

Download Hanuman HD Wallpaper on Google Play

Download Live Currency Exchange Rates on Google Play

Download iSIM Info on Google Play

Download Find Droid on Google Play

Thursday 11 July 2013

How to set up your android environment in Eclipse IDE

For getting started Android development you need to install first Software Development Kit (SDK) You can download from below link or you can get from your friends
 http://developer.android.com/sdk/  
Download Eclipse IDE from below link and make sure you are downloading Eclipse IDE for Java Developers
 www.eclipse.org/downloads/  
After Downloading both the files now Eclipse IDE and Software Development Kit which is Android SDK now available on you system. Now you need to set up ADT (Android Development Toolkit) plugin for that start your eclipse IDE and select help => Install New software => Popup will be appear copy and past below url to Work with text box and add it. On Add Site dialog provide any name or write ADT completion of this process your ADT plugin configure.
 https://dl-ssl.google.com/android/eclipse/  
Now you need to setup for Software Development Kit (SDK) for that in Eclipse Select Window -> Preferences, and then Android. and browse SDK path which you have downloaded previously. Finally you can click on Window -> Android SDK and AVD Manager. In the Installed packages pane, we see the Android SDK Tools we just installed and Also create one (Android Virtual Device)AVD for android application testing purpose.

My Android Applications

Download Hanuman HD Wallpaper on Google Play

Download Live Currency Exchange Rates on Google Play

Download iSIM Info on Google Play

Download Find Droid on Google Play