Latest SharedPreferences Android Studio tutorial: I will teach you how to do remember me login in Android using MySQL PHP. Source Code at https://goo.gl/EwOmqZ Android gives the abilities…
Original source
Latest SharedPreferences Android Studio tutorial: I will teach you how to do remember me login in Android using MySQL PHP. Source Code at https://goo.gl/EwOmqZ Android gives the abilities…
Original source
28 responses to “Latest SharedPreferences Android Studio Tutorial – Remember Me Login, PHP, MySQL, MD5 – 2016”
Thank you sir.. In sub activity how i load the home page(user loged in page)..
Waiting for reply
Sir how to check multiple SharedPreferences values at single activity .??????????????????
hope you know this.
why you use post resnponse async task?
hello teacher, I want to know how to limit time or day for clear session and auto logout? thanks…
sir please help
how can i validate user over php server is logged or not
or
how can i store php session in android app
I am using MS SQL Database. How can make this work with my DB?
is this still the latest sharedpref usage nowadays? dropping by have a nice day 🙂
Hi I would like to know ,will be this java jar file or library supported to current version of android studio 2.3.3.please help me out .Th
hi how can i make remember me login when i use volley lebrary
so what ip i must input when i use real phone instead using emulator to run the app ?
what if im using codeigniter instead of php? what are the difference?
can you help me. i have problem connecting my task.execute("http://10.0.2.2/stmicheal/"😉; its because its redirect to login page, http://stmichaelinventory.com/
So helpful! Thank you very much, bro!
does it safe to save the password at sharedpreferences ?
Thank you, very helpful.. 🙂
So this is the fourth video that I've used from you.
As always, excellent explanation, excellent material, and excellent video.
Once again, thanks for sharing your knowledge with us.
I downloaded the zip folder, created database and tables and insert rows, it seems like everything is fine but when I run the app on my real device it doesn't log me in and doesn't start subActivity. I tried to use task.execute("http://10.0.2.2/customer/index.php") but nothing seems to be working. Any help please?
guys im currently working on an app which can potentially overthrow instagram, twitter , snapchat and kik. if you're a dev and wanna help hmu on kik…my kik id is: ir1
Thank you so much.It worked even with PHP and sqlserver through IIS..Sir can we use the same library of Inserting details/posting values from db to android
This one is great. It saved my day.. Thank you Kosal 🙂
I can connect database with the help of localhost in my browser but it can't connect with in App.. please help me what I should do…. can't logged in…..
Hi. I am having an issue connecting to database in android emulator. The localhost works fine when I give username and password on page localhost/customer/index.php it returns "success" but in emulator for the same username(mike123) and password (123) it returns "D/com.kosalgeek.android.loginsharedpreferences.MainActivity: Wrong username & password" any advise?
Thanks in advance.
Does this even works when phone resets?
i need multiple checkboxes in customised list view and put checkboxes states in shared prefrences
Hi sir i really love your tutorial . i need some help .I want to login for multiple user such as normal user or admin
(php code)
if($result->num_rows > 0){ //has record. correct username and password
$info=mysqli_fetch_array($result);
if($info['user']==1){
$response["success"]=1;
}
echo json_encode($response);
else if($info['user']==0){
$response["success"]=0;
}
echo json_encode($response);
}
else{
echo "Wrong username and password";
exit;
}
public void processFinish(String s) {
Log.d(TAG, s);
if(s.contains("0")){
if(checkFlag) {
editor.putString("username", etEmail.getText().toString());
editor.putString("password", MD5.encrypt(etPassword.getText().toString()));
editor.apply();
Log.d(TAG, pref.getString("password", ""));
}
Intent in = new Intent(login.this, MainActivity.class);
startActivity(in);
}
if(s.contain("1")){
Intent in = new Intent(login.this, AdminActivity.class);
startActivity(in);
}
i have query name user ! admin as 1 , normal user as 0.
how can i verify the user type. please help me
Good english for me (spanish). Thanks for your time to record the video and share your knowledge.
awesome video, pls can you extend this video to a count upload ….something similar to instagram app, where user's pics upload displays respectively below the ealier one …as many as it could be ….thanks.
Sir what if im going to install the application in my device what should this address will be
task.execute("http://10.0.2.2/online/index.php");