Header Ads

ANDROID TUTORIAL : MAKING YOUR FIRST ANDROID APP USING ANDROID STUDIO || www.mobile2computer.com

    Hello guys,Do you want to make your own android app? Do you want to learn android app development and don't know where to start? Then you have came to the right place.Today in this post I am going to teach you all how to make your first android app.


 We are going to make a simple "Hello World" app today. We need an IDE (Integrated Development Environment) .So, for the IDE we are going to use Android Studio ,which is the official IDE of the Android platform.We don't need any programming language for this basic app(So, guys don't worry even if you don't know programming you can make this app).

ABOUT ANDROID AND ANDROID STUDIO

     Android is an popular Operating System for Smartphones,Tablets etc. Android OS was first developed by Android Inc. later the Android Inc. was  purchased by Google Inc. and then Google started improving the OS and now as we can see that the Android OS is the most used Mobile OS in the world even more than Apple's iOS ,because Android is  free of cost.
  
    Android Studio is an free and powerful Integrated Development Environment (IDE) developed by Google Inc. for helping developers to build the android app's easily and more efficiently.It was introduced in 2013.Before,Android Studio was released the developers used Eclipse ,another popular IDE for the android app development. Android Studio is also the official IDE for Android Platform.

Now,as we have some knowledge about what Android and Android Studio is.

Now,let's start making our first android app.Follow the below steps to make your own Android app.


STEP 1:DOWNLOAD AND INSTALL ANDROID STUDIO









 First we have to download Android Studio  and install it in your PC or Laptop.

 The minimum requirement of Android Studio is
  •    minimum 4GB RAM
  •    Windows 10/8/7 
  •    Mac OS X 10.9.5 or higher
  •    Screen Resolution of 1280 X 800
  To download Android Studio Click here


STEP 2: STARTING  AND CREATING A NEW ANDROID PROJECT

  After installing Android Studio ,open the application.You will see a "Welcome to Android Studio"  screen.Click on "Start a new Android Studio project".


    In the next screen ,enter your application name.Here,I am going to enter it as "My Application".


   Then,enter your company name.The company name can be anything .Here,I am entering it as "mobile2computer.com".


 Select the type of device you are going to target i.e the device in which you are going to use the app.We are going to make the app for the mobile phone,so select the "Phone ad Tablet" checkbox and click "Next".


    Then,Select the type of activity you want.Here, we have to select "Empty Activity" for our app.


    In the next screen Android Studio will ask about customizing the Activity.By default the Activity name will be "Mainactivity" and Layout name will be "activity_main".If you wan to change it you can change it.Then,click on  "Finish".  


   You will be shown a  box like below.The project is now building.



STEP 3: MAKING THE ANDROID APP

  After the project is built you will be able to see the below screen.Then,click on "activity_main.xml".


             We can see the layout of the app and how would the app look.Our app would display "HelloWorld!".To change the word you can follow the below steps.

    Click on "Text" button at the bottom ,as shown in the below image.



   Then you would be able to see the below screen.


If you want to change the "Hello World!" and use your own sentence ,then change the sentence as anything like "Hello Guys,Welcome to my app" in the TextView.
Enter, android:text="Hello Guys,Welcome to my app"  instead of android:text="Hello World!"



   Then, click on "Design" in the bottom of the screen.As shown in the below image.



   Now ,we can see that the wordings have been changed.



STEP 4:TESTING AND BUILDING THE APP

  For testing the app we are going to use our android phone.For that you should be a developer. Go to Settings -> About Phone ->Device Information.Then fast click "Build Number" several times.Now you will see a dialog box saying you are now a developer.

  To test the app on your Android smartphone:-
   
  Connect your Android Smartphone with PC or Laptop using the USB cable

  You will get the Below screen in your phone.Click on "USB Debugging (ADB)"
  

    Clicking on that will show the following pop up dialog box.Click "OK"  


  
       You will be asked permission to "Allow USB debugging"  .Click "OK"

    Now the app will run o the phone and you will be able to see that on your computer screen too.Below is an image of the app we built and it's running on our phone.


So,friends we have succeesfully built and tested our "Hello World "app.If you have any query please write in the comments.Hope you liked this tutuorial on app devlopment.

2 comments:

Powered by Blogger.