Hello World using Android Studio 1.0

android studio
android studio






Hope you have installed the Android studio and configure the AVD (Android Virtual Device). Now follow the below steps to execute “Hello World using Android”

Step 1

Open the Android Studio 1.0 and Select File -> New Project …

Android New Project
Android New Project

if you are opening Android Studio First time then you may select from below screen

First time Project creation
First time Project creation

If you are opening android studio first time, then click “Start a new Android Studio project”.

Step 2

minimum SD
Minimum SD

Select the minimum SDK you need for your development and click Next

Step 3

Activity to Mobile
Activity to Mobile

Select activity, this is basically what kind of template you are going to use. Now click next.

Step 4

Activity Details
Activity Details

Provide the details and click Finish

Step 5

Android IDE
Android IDE

Now select fragment_main.xml

Step 6

fragment_main.xml
fragment_main.xml

Still building apps , wait if you get this kind of message

Android screen
Android screen

If you see the below screen means building app is done.

Step 7

Drag the text
Drag the text

Drag the “Plain TextView”

Step 8

Hello world android
Hello world android

select the “Plain TextView” and change the properties – write “Hello Word”

Step 9

Run Android App
Run Android App

Click “Run app”

Step 10

Choose AVD
Choose AVD

Choose AVD and click ok. Now wait for AVD.

Android Emulator
Android Emulator

Unlock the emulator.

Hello world done
Hello world done

Done.

 

Note – You May see below error while Running  the Android App.

Error
Error

Follow the below steps to solve the error.

 

intel x86
intel x86

check the SDK , install the Intel x86.

Now change the bios and enable the visualization  .

advanced seting
advanced seting

Select Change Advanced startup options

Restart now

Click Restart Now ->Trouble Shoot ->Advanced Options ->UEFI Firm ware settings

Click restart.

now Enable the virtualization.

 

If the above process does not solve the issue , please browse the Intel link and follow the steps. it will help to solve the issue

 

 

 

Profile photo of Nirmal Dhara
About Nirmal Dhara 28 Articles
Java Developer

3 Trackbacks / Pingbacks

  1. How to use properties file in Android - JavaAnt
  2. consume a restful webservice in android - JavaAnt
  3. UI validations in Android - JavaAnt

Leave a Reply

Your email address will not be published.


*