I am having problems creating only one login ... My goal is that the first user gets a login screen. If he is a new user, he will register and then register ... from the moment the user starts the application, he must directly redirect to the main activity in order to skip the login page. Friends can help me solve this problem. Please write me any tutorials or any code ... please tell me how to change the manifest file ...
I use this in login activity, but I have not reached my goal.
SharedPreferences pref; SharedPreferences.Editor editor; pref = getSharedPreferences("testapp", MODE_PRIVATE); editor = pref.edit(); editor.putString("register","true"); editor.commit(); String getStatus=pref.getString("register", "nil"); if(getStatus.equals("true"))
source share