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

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

Makeup Mistakes to Avoid | Ali Andreea

Hi guys, So a lot of you here looove makeup. You see makeup gurus all over the world doing their makeup and looking flawless on camera so you decide to invest in some good quality products. Then you

REST API concepts and examples

This video introduces the viewer to some API concepts by making example calls to Facebook's Graph API, Google Maps' API, Instagram's Media Search API, and Twitter's Status Update API. /**********

CComments

  • 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.
  • herve bilomba
    can u share your the wolle code please ?
    here is my email: hervekiss@gmail.com
  • The Lost Dimension
    Org.json.JASONExeption: value connected of type java.lang.string cannot be converted to JSONObject..... Plz share ur code.... I'm stuck here since 5 days.... I'm not able to resolve this issue.... Email: babunabik@gmail.com
  • Technik Profi
    Hello! I think your videos are great!
    But it doesn't work on me! I always get the error message on my mobile: "Register Error! Com. android. volley. timeoutError"
    Can you help me, please?
    What could be the cause of the mistake?

    Can I actually use php Notepad++ to write the notepad?
  • Fernando Martinez
    Ayuda me marca un error en el puerto
  • delawar s
    i am conndected to the internet it show not connected and stuck on please wait
  • Saurav Karki
    JSONException: Value of type java.lang.String cannot be converted to JSONObject

    I got an error when I submit the register button. There is no error in a file.
  • herve bilomba
    Hello Sir i got an error
    Like Register Error!
    com.android.volley.NoConnectionError:
    java.net.ConnectionException:Connection refused

    So can u help me please ?
  • Hamza Naeem
    when add "protected Map<String, String> getParams() throws AuthFailureError". The AuthFailureError gets grayed. I don't know how to fix it kindly help me. I have seen whole video. When you add Request Queue your AuthFailureError is not gray anymore. How do you do that??
  • vrushab rikkula
    where do i have to save my register.php and connect.php file?
  • md Rasedul
    Thanks
  • Emre Saracoglu
    How you can do this? 1:37 ?
  • Justin Junias
    mas kalua mau bikin email yang sudah ter - register di database gabisa register lagi gimana ya ?
  • Fadlian Alfansyah
    Terima kasih...
  • lucas martins
    disponibiliza o código do android studio
  • Rafael Monteiro
    erro using Log.i
    I/tagconvertstr2: [{"success":"0","message":"error"}]

    what ??
  • Suratin Kurin
    Please help
    error: attribute 'com.haerul.recapsmart:passwordToggleEnable' not found.
    Message{kind=ERROR, text=error: attribute 'com.haerul.recapsmart:passwordToggleEnable' not found., sources=[C:\Users\suratin\AndroidStudioProjects\ReCapSmart\app\src\main\res\layout\activity_login.xml:36], original message=, tool name=Optional.of(AAPT)}
  • Rafael Monteiro
    because it hangs in the loading and it does not appear the TOAST stays so in loading neither the button appears again
    It's like you do not enter the try.
  • lucas martins
    my error register error org.json.JSONException: No value for sucess
  • Rafael Monteiro
    Nice man perfect
  • Marcello Câmara
    I saw all your videos. Thanks for being helpful ! Greetings from Brazil !
  • ujinga sana
    hi,
    i'm getting this error:
    org.json.JSONException: End of input at character 2 of, please help
  • 미미미
    hi,I am inquiring because the double check and register button has not been pressed. I run the app on my mobile phone because the emulator is not running, but no matter how much I change it, it doesn't work. Can you tell me how to set up for running in mobile phone?
  • dan brown
    I have this error and cntnot solve it.
    Error parsing data org.json.jsonexception: value <br of type java.lang.string cannot be converted to jsonarray

    my email: zhelofen75@gmail.com
  • jester culong
    com.android.volley.ClientError how to fix this?
  • abdi basariyadi
    AndroidStudioProjects\AndroidRegisterAndLogin2\app\src\main\res\values\styles.xml: Error: Found item Style/AppThemeLogin.AppBarOverlay more than one time

    mohon bantuannya om saat clean project error?
  • rifky saputra
    gan mau nanya, kenapa error pas mau regist muncul com.android.volley.TimeoutError
    longcat :
    08-12 10:19:43.714 3603-3641/com.rifky.mypets W/EGL_emulation: eglSurfaceAttrib not implemented
    08-12 10:19:43.714 3603-3641/com.rifky.mypets W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xe8d1bca0, error=EGL_SUCCESS
    08-12 10:19:44.446 3603-3641/com.rifky.mypets E/Surface: getSlotFromBufferLocked: unknown buffer: 0xe08828c0
    08-12 10:19:44.499 3603-3641/com.rifky.mypets W/EGL_emulation: eglSurfaceAttrib not implemented
    08-12 10:19:44.499 3603-3641/com.rifky.mypets W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xe8cacfe0, error=EGL_SUCCESS
    08-12 10:19:48.511 3603-3641/com.rifky.mypets E/Surface: getSlotFromBufferLocked: unknown buffer: 0xe0882460
    08-12 10:19:53.070 3603-3641/com.rifky.mypets W/EGL_emulation: eglSurfaceAttrib not implemented
    08-12 10:19:53.070 3603-3641/com.rifky.mypets W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xe8cbee60, error=EGL_SUCCESS
    08-12 10:19:54.977 3603-3641/com.rifky.mypets E/Surface: getSlotFromBufferLocked: unknown buffer: 0xe08828c0
  • Nurul Ain Rosslan
    i got error. Register Error!org.jason.JSONException: End of input at character 0 of
  • Sabrun Jamil
    Terima kasih atas tutorial ini sebelumnya bg.
    Tetapi saya masih ada kendala dimana setelah klik register muncul Register error!com.android.volley.VolleyError:java.lang.RuntimeException: Bad URL http//192.168.100.27/PHP/register.php

    saya harap bisa dibantu lagi bg
  • kenyong97
    Hi sir... I am getting this error... "Register Error! org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject"
    Not sure where went wrong... and my PHP code are typed the same as yours...
    The JSON constructor in Android Studio also same as yours... (Double Checked)
  • maiada mahmoud
    hi ..i'm getting this error...android.volley.clientError in the toast message
    what should i do ???? help!!!
  • Ilman Hilmi Oriza
    om mau tanya dong, fungsi nya dah berhasil nyimpen ke database cuma notifikasinya error, bukan success kenapa yah ?
  • muhammad amrullah
    bagus nih, subscribe aah
  • Enrique Cardel
    Please help. I'm getting: Register Error! com.android.volley.NoConnectionError: java.io.IOException: Cleartext HTTP traffic to ["my ip"] not permitted
  • Soft /Tech
    hey man! i have error something like " com.android.volley.clienterror" while register or login.
    please help
  • Donnil Baconguis
    com.android.volley.clienterror
  • Ivan Marquez
    Hello, can you send me the source code of your whole tutorial pls?
  • Lalaine Limjoco
    hi! i keep having aapt2 error. please help me to solve it. thanks