Skip to content

akrajilwar/Android-Login-And-Registration

Repository files navigation

Android-Login-And-Registration

Android Login And Registration System with PHP, MySQL and SQLite Databases.

Read Full tutorial Develop a Complete Android Login Registration System with PHP, MySQL

Download Android Learning Application

Login Screen

Registration Screen

Email Verify Screen

Home Screen

Steps for WINDOWS ON XAMPP

  • Git clone this Repository

  • Copy android_login folder to XAMPP=>htdocs

  • Create database android_login =>

     create table users( id int(11) primary key auto_increment, unique_id varchar(23) not null unique, name varchar(50) not null, email varchar(100) not null unique, encrypted_password varchar(250) not null, otpint(6) NOT NULL, verified int(1) NOT NULL DEFAULT '0', created_at datetime DEFAULT NULL );
    
  • Change Config.php file for username and password

    $username = "root"; $password = "pass"; $host = "localhost"; $dbname = "android_login";

  • Change Main Url inside Functions.Java File

  • If you are using localhost:[PORT] change Mainurl to MAIN_URL = "http://10.0.2.2:[PORT]/android_login/"

  • If you are using just localhost change Mainurl to MAIN_URL = "http://10.0.2.2/android_login/"

Steps for WEBHOSTING

  • Git clone this Repository

  • Copy android_login folder to cpanel=>www

  • Create database android_login =>

    create table users( idint(11) primary key auto_increment, unique_idvarchar(23) not null unique, namevarchar(50) not null, emailvarchar(100) not null unique, encrypted_passwordvarchar(250) not null, otpint(6) NOT NULL, verifiedint(1) NOT NULL DEFAULT '0', created_at datetime DEFAULT NULL );
    
  • Change Config.php file for username and password $username = "username"; $password = "pass"; $host = "localhost"; $dbname = "username_android_login"; //Check at phpmyadmin whats the name of database

  • Change Main Url inside Functions.Java File // HTTP[S] not HTTP TRY BOTH

  • Change Mainurl to MAIN_URL = "https://hostname.example.com/username_android_login/" example "https://cpanel.example.com/username_android_login/"