Android Studio Tutorial - NEW Login Register #5 - Login Request

TonikamiTV · 111K views · 2016 · 10:04

Open on YouTube

tutorialdated

Why Stack Overflow recommends it

Stack Overflow users cite it as the tutorial they followed when asking why their Volley, PHP and MySQL login or registration code fails to post data or parse the JSON response.

Recommended by 0 people across 0 different months, 2016 to 2017.

What it is

Part 5 of a TonikamiTV series that rebuilds an Android login and register app using Volley instead of the deprecated HTTP methods. This episode covers writing the login request class and wiring it to a PHP and MySQL backend, with full project source on GitHub.

What people said

Cites Arthur Frank · 2016-07 · Stack Overflow · on “Possible PHP, Volley and Android issue”

I'm trying to create a login page based on the tutorial below: [this video] I followed all the steps and changed somethings, I do not need a register button so I changed my PHP to: <?php $con = mysqli_connect("my_host", "my_user", "my_password", "my_database"); $username = $_POST["username"]; $password = $_POST["password"]; $statement = mysqli_prepare($con, "SELECT * FROM user WHERE username = ? AND password = ?"); mysqli_stmt_bind_param($statement, "ss", $username, $password); mysqli_stmt_execute($statement); mysqli_stmt_store_result($statement); mysqli_stmt_bind_result($statement, $userID, $name, $username, $password); $response = array(); $response["success"] = false; while(mysqli_stmt_fetch($

Cites Apricot · 2017-01 · Stack Overflow · on “Android Registration form not posting to MySQL - localhost”

I am new to android and trying to learn develop a simple registration form. I followed an [this video] tutorial and the codes for the same are available in github [LINK] . I am using php-mysql installed locally on my machine. Hence for the path to url - both register request as well as login request, I am using the following urls: [LINK] [LINK] When I run these files in my browser locally using: [LINK] [LINK] it doesn't return any error. The connection in the register and login php files are made as follows: $con = mysqli_connect("localhost", "root", "ABCABC", "agnya"); The app upon providing username and password should open a third page or when I register using the registration page, should upd

Cites Sumit Yadav · 2017-06 · Stack Overflow · on “getting "java.lang.String cannot be converted to JSONObject" error how to correct it”

getting this error in my app W/System.err: org.json.JSONException: Value br of type java.lang.String cannot be converted to JSONObject this is my RegisterActivity.java public class RegisterActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_register); final EditText etName=(EditText) findViewById(R.id.etname); final EditText etUsername=(EditText) findViewById(R.id.etusername); final EditText etPassword=(EditText) findViewById(R.id.etpassword); final EditText etCPassword=(EditText) findViewById(R.id.etcpassword); final EditText etEmail=(EditText) findViewById(R.id.etemail); fin