View RSS Feed

Android Launch

  1. Using Intents to Launch Other Applications

    by , 02-11-2012 at 01:53 PM
    Normally, activity classes within application’s package are launched. There are cases in which applications are interested in launching external activity class in other applications with suitable permissions. You can initialize applications by creating intent actions such as following:

    • Built-in web browser is launched and a URL address is supplied.
    • A web browser is launched and search string is supplied.
    • Built-in Dialer application is launched and a phone number ...
  2. Launching Activities Using the Application Context

    by , 02-11-2012 at 01:51 PM
    Call the startActivity() method of the application context. It is most commonly used to launch the activity. startActivity() method takes only one parameter which is called Intent. The below code shows a startActivity() method with an explicit intent.

    Java Code: This is the code to launch an activity
    startActivity(new Intent(getApplicationContext(),MenuActivity.class));
    In the above code, target activity is launched on request of intent, called MenuActivity. This MenuActivity class must be registered ...
  3. Launching Android Applications on a Device

    by , 02-11-2012 at 01: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 ...
  4. Launching Android Applications Using the Emulator

    by , 02-11-2012 at 01:36 PM
    To launch the application using Android, you can launch it by clicking the “Debug” button from launch configuration screen. Also you can launch it by clicking the button on Eclipse toolbar. Then select the created debug configuration from the list. When you will click the “Debug” button, the emulator will launch as show below. It may take some time.

    Name:  1.JPG
Views: 652
Size:  13.6 KB
    Android Emulator

    Your application will run as shown in figure below. It’s just easy ...