Create your first app no coding knowledge required
Tags: android, java, programming, tutorial
Published: 2022-01-18 06:26:06

## Who am I

Hi There, I am *Rishabh Kumar* studied Computer Science and Engineering from *IIT Ropar*. I love to develop native android mobile apps. I have worked in many technology like Java, Android, MERN. I have been coding since 2014. Today i thought of starting a blog starting with my favourite Android Studio. Hope you guys will find it useful.

### Getting Started


#### Download Android Studio from  [official website](https://developer.android.com/studio) 
#### Install exe file just press next next.
#### Open Android Studio you will get following screen Click `New Project` 

![Screenshot 2022-01-09 151105.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1641721847899/3dX3-PNoB.jpeg)
#### Select  `Empty Activity` press next

![Screenshot 2022-01-09 151618.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1641721866084/mYcfbaksf6.jpeg)


#### You will get following screen with 5 fields

![Screenshot 2022-01-09 152307.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1641725240159/9ir-Oxc9N.jpeg)
##### Name (Name of your application)
###### Package Name (Unique for every app on Play Store) contains 3 part like in this example com.hashnode.myapplication. first one typically `com` second part `hashcode` (your developer name unique on play store) this is your app `myapplication`. it gives you unique **string id** to identify you apps on app stores and in your mobile device.
###### Your drive location where your project will be saved.
###### Programming language it could be `Java` or `Kotlin`
###### Minimum Api / Android version you wanna support.
####  Click `Finish` you have your first Hello World App Ready

![Untitled.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1641723308142/U2p79ahJT.png)

#### Java Code Snippet 

```
package com.hashnode.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}
``` 

#### XML Layout & Code (xml help to create UI)


![Untitled1.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1641723535130/7uXyoveazT.jpeg)


```
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
``` 

#### Click avd manager icon to create a virtual device to run the application and launch avd.


![Screenshot 2022-01-09 155047.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1641724825480/l9s_EHaqan.jpeg)


#### Congratulations you just created your first app.


![hello.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1641725162665/jqJdBS_kY.jpeg)

> I also have a YouTube channel! Do not forget to subscribe [CodeWithRish](https://www.youtube.com/channel/UCNo06U1dam7Y5jk9V48H6YA).