Posts

Android - Android ADT (Android Development Tools) in detail

The Android SDK includes several tools and utilities to help you to create, test, and debug your projects. ADT plug-in conveniently incorporates most of those tools into the eclipse IDE, where you can access them from the DDMS (Dalvik Debug Monitoring Service) perspective, including: The Android SDK and Virtual Device Manager : Used to create and manage Android Virtual Devices (AVD) and SDK packages. The AVD hosts an emulator running a particular build of Android, letting you specify the supported SDK version, screen resolution, amount of SD card storage available hardware capabilities. The Android Emulator : An implementation of the Android Virtual machine designed to run within a virtual device on your development computer. Use the emulator to test and debug your android applications. Dalvik Debug Monitoring service (DDMS) : Use the DDMS perspective to monitor and control the Dalvik virtual machines on which you are debugging your applications. Android Asset Packaging Tool : ...

Android - Android activity life cycle

Image
The life cycle is shown diagrammatically below Your activity monitors and reacts to these events by instantiating methods that override the  Activity class methods for each event: onCreate Called  when your activity is first created. This is the place you normally create your views, open any persistent datafiles your activity needs to use, and in general initialize your activity. When calling  onCreate , the Android framework is passed a  Bundle  object that contains any activity state saved from when the activity ran before. onStart Called  just before your activity becomes visible on the screen. Once  onStart  completes, if your activity can become the foreground activity on the screen, control will transfer to  onResume . If the activity cannot become the foreground activity for some reason, control transfers to the  onStop method. onResume Called right after  onStart  if  your activity is the...

Android - Installation of Android without internet

Image
Requiremets : A friend or any person who is already having android setup in his/her laptop/computer A device (may be a pendrive or a hard disk etc) to transfer files Steps :  Copy Android sdk from your friends laptop/computer If you dont have eclipse with you, copy even whole eclipse folder (with ADT plugin) Copy these two files in your laptop/computer in a "C:" drive preferably Then open eclipse  Go to windows->preferences->Android , then give path SDK location And you are done.

Android - The Structure of an Android Project

Image
The Structure of an Android Project  After you create a new project in eclipse, you will see the following top-level folders in your package explorer.                                                                         Figure 1-2 Each of them in detail: /src :  This folder will contain the java source files. In the screenshot(figure 1-3) you can see 'activity' file created in a sample project. The files in this folder will be organized according to the package.                                                                        Figure 1-3 /gen :  This is also a source folder, but will ...

Android - Installation of Android

Image
Installation of Android This tutorial shows you how to download and install Android SDK to get you started developing Android applications. The objective of this android  tutorial would be a) Install the Android SDK on Windows  and configure with eclipse b) Create an Application that Runs on the Android Emulator 1.Install Java  (if it is not on your machine) Goto  http://www.oracle.com/technetwork/java/javase/downloads/index.html Click on Download JDK button Select Platform and Language for your download and click on license Agreement checkbox   Click on continue button. Then Click on  jdk-6u23-windows-i586.exe  for download Now save file and install the jdk. 2. Install Eclipse Eclipse is a professional editor. Go to  http://www.eclipse.org/downloads/  . Click on Windows 32 Bit from the right side download icon of Eclipse IDE for Java Developers row. Click on download icon. After it has finished dow...

Android - Programming languages used in Android

Programming languages used in Android At launch, Java was the only officially supported programming language for building distributable third-party Android software. Android Native Development Kit (Android NDK) which will allow developers to build Android software components with C   and C++ In addition to delivering support for native code, Google is also extending Android to support popular  dynamic scripting languages . Earlier this month, Google launched the  Android Scripting Environment (ASE)  which allows third-party developers to build simple Android applications with Perl, JRuby , Python , LUA  and BeanShell . For having idea and usage of  ASE , refer this  Example link . Scala  is also supported. For having examples of Scala, refer these  Example link-1   ,  Example link-2   ,  Example link-3   .