View RSS Feed

Android Development

  1. Launching Android Applications on a Device

    by , 02-11-2012 at 12:44 PM
    To load Android application on your device, plug your Android device using USD data cable to your computer. Also check you debugging setting to confirm that you have configured this device for debugging. Follow these steps to make sure that you are using correct settings for debugging.

    • From Java perspective, select Run -> Debug configurations.
    • Double click your configurations.
    • Change your “Deployment Target Selection Mode” to manual on Target tab. You can get ...
  2. Simulating Incoming Calls to the Emulator

    by , 02-11-2012 at 12:40 PM
    Using DDMS Emulator control tab, incoming voice calls can be simulated. It is not a real call and no voice or other data is transmitted between the 2 parties. It is just a simulation of incoming calls as shown in below figure.

    Name:  1.JPG
Views: 909
Size:  25.1 KB
    Simulating Incoming Calls to the Emulator

    Follow below steps to simulate incoming call on your emulator that is running on your server.
    • Select emulator instance to call in the DDMS perspective. ...
  3. Android Project Files in Eclipse

    by , 02-11-2012 at 12:29 PM
    In this section we will explain different files automatically created with a new android project in eclipse.

    • AndroidManifest.xml: Main configuration’s file for the application.
    • default.properties: Build file used by Eclipse and Android ADT plug-in.
    • proguard.cfg: Build file used by Eclipse, ProGuard, and the Android ADT plug-in. You can edit and configure this file to optimize your code.
    • src folder: This folder contains all the source code.
    • Activity.java: ...
  4. Creating Hello World Android Project in Eclipse

    by , 02-11-2012 at 12:28 PM
    In this section, we will create a simple Hello World Android Project in Eclipse. Launch you Eclipse and follow these steps to create a simple project.

    • Click File -> New -> Android Project.
    • Enter a project name. For example “Droid1”.
    • Select a folder for the project source.
    • Next you need to select build target for your Android Project. Select most suitable for your target audience and application. For example if you want to use Google Maps, then ...
  5. Performing Fragment Transactions

    by , 02-11-2012 at 12:25 PM
    You can add, remove, replace or perform actions with fragments in your activity in response to user interaction. A transaction is a set of changes you perform to an activity and these can be performed using APIs in FragmentTransaction. These transaction can be saved on back stack and allow the user to navigate these changes.

    To get an instance from FragmentManager, following code is used.


    Java Code: This is the code to create a fragment
    FragmentManager fragmentManager = getFragmentManager()
    ...
  6. Building and Running Android Application from Eclipse with ADT

    by , 02-11-2012 at 11:09 AM
    Details of the build process are hidden when using Eclipse and ADT. Build process in running continuously in background and automatically build application when you make changes to code. Following topics will explain how to run application.

    Running on the emulator

    Create an AVD when you are running your application on the Android Emulator. Follow these steps to run your application

    • From Eclipse menu bar select Run > Run (or Run > Debug) from the ...
  7. Building and Running an Android Application

    by , 02-11-2012 at 11:04 AM
    An Android project is compiled and packaged into “.apk” file. It is the container for application binary. It contains following information that is necessary to run your application on a device or emulator

    • Compiled “.dex” files
    • Binary version of Manifest file
    • Compiled resources
    • Uncompiled resource files for your application

    If Eclipse is being used as development IDE, the ADT plug-in is responsible for building your project when source ...

    Updated 02-11-2012 at 11:06 AM by Android Development

    Categories
    Build Application , Run Application
  8. Android Manifest File

    by , 02-11-2012 at 11:00 AM
    Whenever an Android Application is loaded, the application's AndroidManifest.xml file also called “manifest file” is read by the Android system. All the components are declared in this file by the Android application. Also it is placed at the root of application project directory.

    Following are the major tasks that are performed by the manifest other than just declaring the application’s components.

    • User permissions such as Internet access or read access to user’s
    ...
  9. Android Application Framework

    by , 02-11-2012 at 10:58 AM
    Android Application Framework supports development of rich and innovative mobile applications. Android Application Framework is open source and uses Java Programming language. Android developers can take benefits of the hardware device, access location information, background services, alarms, ability to add notifications and many other benefits.

    Core applications uses framework APIs and developer complete rights to those APIs. The architecture of application is based on reusability ...