Main navigation

Connect, Configure App on Real Android device and Run Hello World program with Android Studio.



1) Android Studio installed on your PC (Unix or Windows). You can learn how to install it here .

2) A basic knowledge of Android lifecycle and different classes & functions used in Android Studio.

Follow following steps for connecting smartphone with Android Studio:

First we need to enable Developer options on Android device.

Go to Settings of the Android Device and then System Settings as shown below:


Click on About Phone (In some devices it is About Device). Following screen will be opened:


For Android version higher than 4.4, developer option is hidden. In the above window there will be a Build number.
You need to hit this build number 7 times. It is common for all android devices. Now go back to settings again. You will see developer options as shown below:


Select developer options and then select USB debugging option. Connect your Android device with Android Studio through micro USB wire. Select photo transfer (PTP) option as show below:


Now open Device Monitor in Android Studio and you will be able to see device connected.

So we have successfully connected and configured android device. Now let’s run a Hello World App on our configured device.

Creating new project

Please follow following steps:

  1. Open Android Studio and make a new project with name “Android Device” and company domain (I used my company domain i.e Similarly you can use yours).
  2. Click Next and choose android version Lollipop. Again Click Next and Choose Blank Activity.
  3. Leave all things remaining same and Click Finish.

Now you can see, content_main.xml and strings.xml. If you are not able to see them then click on the left window where these files can easily be located as shown in following figure:


Run the code (Shift+F10) . Following window will pop up:


Select the device and click Ok. Boom!! Our App is working and running fine. Hello World will be shown on Android Device.

What’s Next

You can see our next tutorial of How to make a basic App. Here You will be able to make an App from scratch without any external help.

Let us know if you have any queries or suggestions. We would love to help you. Please subscribe. Also do Like our Facebook Page or Add us on Twitter.

Download above code by clicking following link:

Android Tutorial Point Download Now

Reader Interactions


  1. Hello blogger !! I read your page everyday and i must say you
    have very interesting posts here. Your website deserves to go viral.
    You need initial traffic only. How to go viral fast?

    Search for; forbesden’s tools

  2. I think the admin of this site is truly working hard for
    his site, since here every material is quality based material.

  3. fantastic post, very informative. I’m wondering why the opposite specialists of this sector do
    not realize this. You should proceed your writing. I am
    confident, you have a great readers’ base already!

  4. I know this if off topic but I’m looking into starting my own blog and was
    curious what all is needed to get setup? I’m assuming having a
    blog like yours would cost a pretty penny? I’m not very web smart so I’m not 100%
    certain. Any recommendations or advice would be greatly appreciated.

  5. Simply desire to say your article is as astounding. The clearness in your post is simply nice and i could assume you’re an expert on this subject. Well with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please continue the rewarding work.|

Leave a Reply

Advertisment ad adsense adlogger