antoinetrouve / MyQCM_Android

Android application about MyQCM project
0 stars 0 forks source link

Disconnect user session #5

Closed antoinetrouve closed 8 years ago

antoinetrouve commented 8 years ago

See connection process

In case of a user already exist in database when another user trying to connect

Problem

Solution

antoinetrouve commented 8 years ago

Solution implemented:

After logout redirect user to Login Activity Intent intent = new Intent(MenuActivity.this,LoginActivity.class); Closing all the activities intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Add new Flag to start new activity intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent);