8.5 C
New York
Monday, March 30, 2020
No menu items!
Home Android tutorials How to make android studio login page Sql (part 1)

How to make android studio login page Sql (part 1)

Android studio login page SQL in Urdu and Hindi for a beginner:

Android studio login page SQL Urdu and Hindi: Welcome to Rise Pakistani Urdu and Hindi tutorial. Today we will continue the first part of android studio login page SQL Urdu and Hindi. You can watch my video tutorial on my website RisePakistani or Youtube channel. If you like my video please like my video. If you have any issue please comment here thank you.

Internet permission:

Android manifest file

Add this code in your android studio AndroidManifest.xml   file.  This code allows you to get internet permission in your android app.



<uses-permission android:name="android.permission.INTERNET" />

Login view page or user interface:

Add this code in your Activity.xml file which used to show interface on the mobile screen.  Here user will insert username and password and inter login button.


Php Connection to MySQL:

If we want to get data to form MySql database, we need to able to connect to the server.

By following this link https://www.w3schools.com/php/php_mysql_connect.asp  you can learn how to make a connection with the server.

Main Activity :

The main activity is an important part of your app. All action can be performed in this part. you can make different activity in your app. Activity is the part where all activities are performed according to a user click.

EditText username, pass;

//Dbconn db;

   protected void onCreate(Bundle savedInstanceState){
       super.onCreate( savedInstanceState );
      // set activity_main.xml layout
       setContentView( R.layout.activity_main );
      //  get user name id
       username=findViewById( R.id.username );
       // get user password id
       pass = findViewById( R.id.password );


This code will execute on click login button.

public void loginbtn(View view)
// get username in string
 String user_name= username.getText().toString(); 
// get user password in string
 String user_pass= pass.getText().toString();
// get type
 String type= "Login"; 
 Dbconn dbconn=new Dbconn(this);
 dbconn.execute( type,user_name,user_pass );
 //Toast.makeText( this, "hj gkhg h gk0", Toast.LENGTH_SHORT ).show();


click here and watch more video. If you like my video, please subscribe to my website.


  1. Thanks , I’ve recently been looking for info about this subject for ages and yours is the greatest I’ve discovered so far. But, what about the conclusion? Are you sure about the source?

  2. After looking over a few of the articles
    on your web site, I seriously appreciate your way of blogging.
    I bookmarked it to my bookmark website list and will be checking back soon. Take a
    look at my web site too and let me know your opinion.


Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

Dubai Expo 2020 Glory against CoronaVirus| Dubai’s Global Celebrations

What is the Main Idea of Dubai Expo2020? The main Idea according to which this has been set up is the encouragement of tourism and...

Caronavirus Symptoms causes 2020 Challenge Is It going to change World map?

Coronavirus Wuhan to International Pandemic: Wuhan china was supposed to be the main hub for Coronavirus and many so-called analysts and health organizations were speaking...

Khalil ur Rehman Qamar and Marvi Sirmad Swears at Aurat March Drama

Khalil ur Rehman Qamar vs Drama Queen Marvi Sirmad Khalil has always been a blunt soul if we talk about our society and its norms...

International and National Women Day 2020| Women Rights and Feminism

International Women's Day 2020: The Prestigious name the prestigious day but the wrong ideology for a good cause whether it is from the UN or...