Loading...

REGISTER - Android Login And Register | PART 1 | (Volley Library, PHP, MySQL)

REGISTER - Android Login And Register | PART 1 | (Volley Library, PHP, MySQL)
#android #login #register #volley #php #mysql

 Android Login And Register

- Volley Library
- PHP
- MySQL

please download php code here https://bit.ly/2w6zoXv

use postman for check your php code.


if you test application on real device its important to type ip adress of your computer in browser of your mobile device and if you see something like "forbidden you don't have permission to access / on this server"-go to wamp/xampp server and click on apache and then httpd.conf and find Denied from all,and replace with Allow from ip adress of your mobile phone,and after that restart in wamp/xampp all services. 

Thanks

Follow my channel

(https://www.youtube.com/channel/UCFOcbpcqG-f7Ootft8zKWzw)

RRelated Posts

How to create a new activity

In this tutorial, I'll show you how to create a new Activity using Android Studio. Watch these tutorials: 1) How to install Android Studio and set JAVA_HOME : http://youtu.be/mxYainSDHe8 2) How to

CComments

  • Musaddiq Jinabade
    Hello sir Getting error on json exception cannot convert into string?.. How to fix this.. help me?
  • shan malik
    I get this error: Value of java.lang.String can not be converted to JSONObject.
    Jazak Allah
  • rachdi farisma
    halo mas haerul, mau nanya nih. saya kan tes app nya di handphone android langsung, maksud dari ketik ip address komputer di browser hp gimana ya itu mas? dan sama kalau login.php saya coba di postman, malah error di bagian index password bagian ini $row['password'], itu gimana cara mecahin masalah nya ya? mohon bantuannya ya mas haerul, terima kasih.
  • Sung Prasetyo
    Permisi mas, kalo api (server side) memakai laravel 5.4 Lumen dan android nya memakai volley itu bisa ngga ya?
  • Abhishek Mishra
    This is just what I was looking for, Thank you very much
  • Joshmat jjen
    I am having volley Timeout error
  • Anthony Pioray
    Good evening! I'm getting an error. Should I place my PHP File on the HTDOCS folder of the XAMPP Control Panel or not? Thank you!
  • The Lost Dimension
    Hi, can you please make a video on how to send data from radio group which is inside recycler view and there are atleast 10 recycler having similar data .... How should I insert multiple data into the database from the recycler view on a button click.... using volley. Plz help... Your videos are amazing simple and good .. I get to learn from you quicker.
  • Berna Koc
    I'm getting JSONException: Value of type java.lang.String cannot be converted to JSONObject error please help me?
  • Berna Koc
    Hi can you send me source code this tutorial? bernaelif06@gmail.com
  • Lex Luthor
    Hi when i click register btutton I get this error: org.json.JSONException: End of input at character 0 of pls help thank you
  • Ahmad Basarudin
    request upload file pdf menggunakan volley donk bos
  • Jo Jo
    terima kasih mas tutorial nya. saya coba sesuaikan dengan codingan saya. tapi pas waktu klik tombol submit toast makernya muncul register sukses. tapi datanya ngga masuk ke mysql. salah dimananya itu yah.... thx
  • Jeah Mairi Baya
    Hi! When i click the register button nothing happens. It will only load. and toast error will NOT display. What will be the possible problem? thank you.
  • Rifqi Naufal
    Kalau pas klik button malah keep stopped gmn itu?
  • Henry DwiSeptian
    thx for the tutorial...
  • Tiago Santos
    For everyone having this error "<br of type java.lang.String cannot be converted to JSONObject" and that have the code exactly like Haerul try taking this field out on connect.php like this "$conn = mysqli_connect("localhost", " ", "root")". I'm not sure if it's the correct way to do it but it worked for me. Is there any problem in taking out that field Haerul?
  • Samuel Gui
    Hello, I sent you an e-mail to haerul.muttaqin@gmail.com to ask you if you would agree to send me the Android codes for some tutorials which I showed you in the e-mail. Thank you very much and your tutorials are very useful!
  • Heri Hermawanto
    mas ,register.php disimpen dimana ya? di folder yg pasti phpmyadmin? apache?atau php ?
    soalnya saya simpen di phpmyadmin\doc\html . Connection failed
    mohon arahan mas
  • jo mintoon
    I follow you in the clip. But errors
  • Kavana Shettigar
    I get this error: Value of java.lang.String can not be converted to JSONObject.
    please hlp me sir
  • Shawn Shiers
    Cheers for your help, you are a bloody legend!
  • mmm2007j
    I have an error says com.android.volley.clienterror and the web show was not found on server.
    And I fix it by move android_register_login folder to the www folder , and the phpinfo.php is over there ,too.
  • jasbinder singh
    Not really a tutorial - more like...Look how fast i can type....with some lame ass music added in
  • micydon vines
    Can u tell me how to upload increased number examples points system on login use in mysql each time when user click the button
  • chefdepeuple009
    hi sir ,i got this error ‘’org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject‘’ i cannot fix it,pls help.
  • Irfan Hazim Azhar
    hi. thanks for the tutorial but i receive an error. org.jsonJSONException:Value <br of type java.lang.String cannot be converted to JSONObject
  • Absalom Alila
    Hey, under which file did you save the PHP files. connect.php and register.php
  • Selvik
    Please give me source Android Studio: bt24@bk.ru
    thank you!!!
  • Michael Keller
    Hi, I could fix some errors, now I can access the profile normally. But I would like you to teach you to create a page with all users in a Gridview with photos and access of other users profiles.
  • Sung Prasetyo
    Mas ini Session nya pake SharedPrefManager atau bukan ya?
  • acczz black
    I'm getting this error: org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject. could you help me please? I downloaded your php files
  • 陳傑恩
    Hi!I get this error: Value <br of type java.lang.String can not be converted to JSONObject.
    Please give me source: jackws811@gmail.com
    thank you!!!
  • Claudio Andres
    I have an error when I finish the registration, it registers successfully, but the loading icon does not disappear, please help, send me your code to my email please, cp.claudio25@gmail.com
  • Shadow Fist
    hai..i got some error.... this error " org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject " ....can tell me where i should fix this error...or mybe can share source code with me... : shadow.fist93@gmail.com...thanks
  • Kris Yanto
    maaf mas kalau eror seperti ini gimana ya ? org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject.
  • Kuni Alya
    thankyou for the tutorial. i've error message "Errororg.json.JSONException:Value<? of type java.lang.String cannot be converted to JSONObject". i've been checking in java code.
    StringRequest stringRequest = new StringRequest(Request.Method.POST, URL_LOGIN,new Response.Listener<String>() {
    and JSONObject jsonObject = new JSONObject(response);
    cause the error. would you mind to tell me how to solve that problem? thankyou
  • Tech Builder
    Hello sir, hopefully you are good. This comment from Bangladesh. I am really thankful for your channel. InsaAllah we will get awesome video series from your channel.


    Thanks in Advance
  • Bishal Ram
    Everything is fine but is is showing volley time out error toast message please help me sir
  • Luyn Huỳnh
    I get this error: Value of java.lang.String can not be converted to JSONObject.
    Please give me source: huynhluyn2016@gmail.com
    thank you!!!
  • isaac njau
    perfect
  • herve bilomba
    yuo're the best ever it's working perfectly
  • Ben JR.
    hi, where must be located those php files?
    I'm using windows.
  • Tahir Khan
    Thanks for this great tutorial , everything works fine for me.
  • Ferzin Zeynalli
    Good ))
  • moment for Life
    Failed to resolve: com.android.volly:volly:1.1.0
    Error message plz. help
  • Irwanda AF
    I think this will solve the "Org.json.JASONExeption: value connected of type java.lang.string cannot be converted to JSONObject", just comment on password hash line, but your password can't encrypted.

    <?php
    if ($_SERVER['REQUEST_METHOD'] =='POST'){
    $name = $_POST['name'];
    $email = $_POST['email'];
    $password = $_POST['password'];

    // $password = password_hash($password, PASSWORD_DEFAULT);

    require_once 'connect.php';
    $sql = "INSERT INTO users_table (name, email, password) VALUES ('$name', '$email', '$password')";
    if ( mysqli_query($conn, $sql) )
    {
    $result["success"] = "1";
    $result["message"] = "success";
    echo json_encode($result);
    mysqli_close($conn);
    } else {
    $result["success"] = "0";
    $result["message"] = "error";
    echo json_encode($result);
    mysqli_close($conn);
    }
    }
    ?>

    OR you can use this md5,

    <?php
    if ($_SERVER['REQUEST_METHOD'] =='POST'){
    $name = $_POST['name'];
    $email = $_POST['email'];

    $password = md5($_POST['password']);

    // $password = password_hash($password, PASSWORD_DEFAULT);
    require_once 'connect.php';
    $sql = "INSERT INTO users_table (name, email, password) VALUES ('$name', '$email', '$password')";
    if ( mysqli_query($conn, $sql) )
    {
    $result["success"] = "1";
    $result["message"] = "success";
    echo json_encode($result);
    mysqli_close($conn);
    } else {
    $result["success"] = "0";
    $result["message"] = "error";
    echo json_encode($result);
    mysqli_close($conn);
    }
    }
    ?>
  • 561alpha
    For those having issues with "com.android.volley.NoConnectionError clear text HTTP traffic to myserver," sometimes, you have to enable cleartext manually.
    to do so, go into your android manifest and add android:usesCleartextTraffic="true"
    example below:

    <?xml version="1.0" encoding="utf-8"?>
    <manifest ...>
    <uses-permission android:name="android.permission.INTERNET" />
    <application
    ...
    android:usesCleartextTraffic="true"
    ...>
    ...
    </application>
    </manifest>
  • Shyamlal P V
    Hi, can you send me the source code for the android part of the tutorial ?
  • Peter Dejano
    com.android.volley.servererror - How can I fix this? Please answer asap.