Pages

Renaming an Android Project in Eclipse


Two easy steps to rename an Android project in Eclipse :


1) Right-Click on your project folder in Eclipse and go to Refactor -> Rename, and make sure to update references.
2) Edit res/values/strings.xml of your project and change the value of app_name to whatever you want to renamed
    in Refactor.


Android Graphical Layout is not visible or missing

 

Graphical Layout of Android Project is not visible in Eclipse??


Following are the steps to make Graphical Layout visible :-



     1.  Go to Preferences -> General- >Editors->File Associations.   

    2.  If Android layout editor is missing click on Add as shown, 




  
     
    3.  After clicking on Add select Android Layout Editor and then
          click on OK.



          
 

       4.  Close Eclipse and restart. Otherwise this will not work.


Installing Apache Ant on Windows


Prerequisites :- JDK(Java Development Kit)



Following is the Procedure to install Apache Ant on windows operating system :


  • Download the Apache Ant, to download click here.
  • Extract the downloaded folder to C:\Program Files.
  • Rename the extracted folder to ant.
  • Create new environment variable-ANT_HOME.


My Computer -> Advanced System Properties -> Environment Variable.
Select new..
  • Set variable name:-ANT_HOME
  • Set variable value:-C:\Program Files\ant
  • Create or update environment variable-path
  • Set variable name:-path
  • Set variable value:-C:\Program Files\Java\jdk1.6.0\bin;%ANT_HOME%\bin.



Thats all!!!

Adding an External Library (.jar) File in Eclipse

You can add a third party JAR file in your Android project using Eclipse as follows:



Step 1:- In the Package Explorer, right click on your project and select Properties.


Step 2:- Select Java Build Path, then click on Libraries tab.


Step 3:- Press the Add External JARs... button and select the jar file, as shown.










Hope this information was useful for you!!!

Problem in Parsing the Package while installing Android apps

Parsing Error while installing the Android application in Android phones?


Parsing error comes due to the Android-SDK version given in the Android manifest file.

To overcome this error please follow the steps given below.




Step 1:- Click on the android project in the Package Explorer of the Eclipse.
Step 2:- Now click on the AndroidManifest.xml. After this a project manifest will open.
Step 3:- Now click on the AndroidManifest.xml file at the bottom.
This xml file contains the android-sdk version as shown


  



Step 4:- Change this android-sdk version from 14 to 4 as shown
  <uses-sdk android:minSdkVersion="4" />

Thats all...the parsing error is removed!!!Check it.


Softwares and Procedure to Build Android Apps

Things required to build Android Apps


Only three things are needed to setup for building android applications. These are JDK(Java Development Kit) , Eclipse IDE and ADT(Android Development Tool) Plugin.


 1. JDK (Java Development Kit) 

       Download and setup any JDK (latest Java Development Kit  1.6/1.7).The JDK has as its primary 
       components a collection of programming tools for java.The JDK also comes with a complete 
       JRE (Java Runtime Environment), so no need of downloading it.
                      

       You can download the jdk from here, click here .


 2. Download Eclipse

     After setting up the JDK, download the Eclipse and ensure it meets the system requirements.
     Eclipse is an IDE (Integrated Development Environment). Eclipse is an open development 
     platform consisting of frameworks, tools and runtimes for building, deploying and managing
     software. 

     To download the Eclipse click here .


 3.  Downloading ADT Plugin through Eclipse

      ADT (Android Development Tool) is a Plugin for Eclipse that provides tools and features to
      develop the android application quickly.ADT provides GUI access to many of the command line 
      SDK tools as well  as a UI design tool for rapid prototyping, designing, and building of your 
      application's user interface.
   
     Steps to setup ADT Plugin in Eclipse:-
   
     (i)   Open Eclipse go to Help => Install New Software . A dialog box will appear.
    
     (ii)  Click on Add button. In Add Repository, write any suitable name ('android' or your name)
           & in Location paste the URL, http://dl-ssl.google.com/android/eclipse.
           then click on OK.
    
     (iii)  After this, available software by the name "Developer Tools" will appear. Click on this, a list of
            tools will pop-down, select Android Development Tools and click on Next. Accept the Terms
            & Conditions and click on Finish. The software starts installing.
    
It will take time to install...
      After the software has installed,start building your Android project in Eclipse and develop your
     own  apps.
     
      

Update Android Version

How to Update Android Phone Version?


Want to know how to update Android OS to the latest one??? Follow the procedure to get latest Android version.









Steps to Update Android Operating System


STEP 1:- First of all Press the “Home” button of your android smart phone.
STEP 2:- Then select “Settings.”
STEP 3:- Now select “About Phone” by scrolling down
STEP 4:- Now Tap on “System Updates”. As soon as you go for System updates your android phone will check any new software. If there’s no new software updated then you will see a message your phone is “Up to Date.”
STEP 5:- If there is any new software update for your android smart phone then press “Install Now”. The update will download and your phone will restart.
Thats it. Its done!!! You are with your new Android Version.