注销后,用户将被定向到android中的登录屏幕.现在,如果用户点击手机的后退按钮,它应该保持在登录屏幕上.
我怎样才能在android中实现它?
我在我的应用程序中使用了以下代码,但它将关闭我的应用程序.它应该只保留在登录屏幕上
Intent objsignOut = new Intent(getBaseContext(),Hello.class);
objsignOut.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(objsignOut);
Run Code Online (Sandbox Code Playgroud)
请指导我正确的方法.