Wednesday, 29 April 2015

add google play services library

No comments
Here are the right steps to import google play services lib in Eclipse.
  • Goto Menu File and select Import
  • Select “Existing Android Code Into Workspace” in Android folder in popup window
  • Click “Browse” to find the google player services lib folder. In my example, the location is:
  • D:\android-sdk-windows\extras\google\google_play_services\libproject\google-play-services_lib
    or you can download here [DOWNLOAD]
  • Check “Copy projects into workspace” option
  • Click “Finish” button




Add Google Play Services Lib into Android Project

Now, you need to add google play services library into your android project. Follow these step by step instructions:
  • Right click on your android project and select “Properties”
  • Select “Android” section
  • Click “Add” in library area
  • Select “google-play-services_lib” and click “OK”
  • Click “Apply” and click “OK”




source : http://jmsliu.com

Tuesday, 28 April 2015

Android Project Hierarchy

No comments








1.src
User specified java source code files will be available here.

2.genThe gen directory in an Android project contains auto generated files. You can see R.java inside this folder which is a generated class which contains references to certain resources of the project. R.java is automatically created by the Eclipse IDE and any manual changes are not necessary.


3.res
Android supports resources like images and certain XML configuration files, these can be keep separate from the source code. All these resources should be placed inside the res folder. This res folder will be having sub-folders to keep the resources based on its type.

4./res/values
Used to define strings, colors, dimensions, styles and static arrays of strings or integers. By convention each type is stored in a separate file, e.g. strings are defined in the res/values/strings.xml file.

5./res/anim
This folder contains animations in XML for the property animation API which allows to animate arbitrary properties of objects over time.

6./res/layout
This folder contains the layouts to be used in the application.A layout resource defines the architecture for the UI in an Activity or a component of a UI. These are resource directories in an application that provides different layout designs for different screen sizes

7./res/menu
This folder contains menu resources to be used in the application (Options Menu, Context Menu, or submenu)

8./res/drawable
Drawable folders are resource directories in an application that provides different l bitmap drawables for medium, high, and extra high density screens.

9.libs
External library files will be placed in this folder. If you want to any external library in your project place the library jar inside this folder and it will be added to the classpath automatically.

10.sssets
This folder contains raw hierarchy of files and directories, with no other capabilities. It is just an unstructured hierarchy of files, allowing you to put anything you want there and later retrieve as raw byte streams.

11.bin
Bin folder is the area used by the compiler to prepare the files to be finally packaged to the application’s APK file. This includes Compiling your Java code into class files. Putting your resources (including images) into a structure to be zipped into the APK This is the output directory of the build. This is where you can find the final .apk file and other compiled resources.

12.AndroidManifest.xml
All the android applications will have an AndroidManifest.xml file in the root directory. This file will contain essential information about the application to the Android system, information the system must have before it can run any of the application's code. This control file describes the nature of the application and each of its components







Source : www.compiletimeerror.com

Importing Android Project into Eclipse ADT Bundle

1 comment
Open the eclipse ADT

File --> Import
    


Select “Existing Android Code into Workspaceà Next
   


Choose browse and select folder of your project --> OK
    


if you want to copy the project into your eclipse workspace please checked "Copy project into workspace"
Select Finish.






Download Eclipse ADT bundle for Android

9 comments
Here if you looking for the link to download ADT bundle for android :

[Windows x86-64] https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
[Windows x86] https://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
[Mac OS x86-64] https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
[Linux x86] https://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
[Linux x86-64] https://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip

Please enjoy it :)