Prerequisites:
Android Studio should be installed, if it’s not ready, please install android studio
This application will be a very simple project that will show a message that is
“Hello World”.
In this android project, there will be two mandatory files :
- activity_main.xml: This file is used for the layout of the application
- MainActivity.java: This file helps us to write the code
Steps:
1. Open the Android Studio
2. Click on Create New Project
3. Click on Empty Activity Click on 'Next'.
4. Enter following details :
Name : Hello Word
Package Name com.helloworld
Save location : choose any location
Language : Java
Minimum SDK: API 21 Android 5.0
Click Finish
5. Build APK
7. Copy app-debug.apk file to your mobile device
To install this application you can adopt two methods:
1. Connect mobile device with USB cable. Ensure Developer mode and USB debugging are enabled . Click on Run .
Or
Post a Comment