How to make android apps

In this page, you will know how to create the simple hello android application. We are creating the simple example of android using the Eclipse IDE. For creating the simple example:

  1. Create the new android project
  2. Write the message (optional)
  3. Run the android application

Hello Android Example

You need to follow the 3 steps mentioned above for creating the Hello android application.

1) Create the New Android project

For creating the new android studio project:

1) Select Start a new Android Studio project

hello android example

2) Provide the following information: Application name, Company domain, Project location and Package name of application and click next.

hello android example 2

3) Select the API level of application and click next.

hello android example 3

4) Select the Activity type (Empty Activity).

hello android example 4

5) Provide the Activity Name and click finish.

hello android example 5

After finishing the Activity configuration, Android Studio auto generates the activity class and other required configuration files.

Now an android project has been created. You can explore the android project and see the simple program, it looks like this:

hello android example 5

2) Write the message

File: activity_main.xml

Android studio auto generates code for activity_main.xml file. You may edit this file according to your requirement.

File: MainActivity.java

To understand the first android application, visit the next page (internal details of hello android example).


3) Run the android application

To run the android application, click the run icon on the toolbar or simply press Shift + F10.

hello android example 7

The android emulator might take 2 or 3 minutes to boot. So please have patience. After booting the emulator, the android studio installs the application and launches the activity. You will see something like this:

hello android example 8



Contact US

Email:[email protected]

Hello Android example
10/30