cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch/logoff a smp android app

0 Kudos

Hello guys, I built an android native app with SMP 3.0, and followed all the Claudia Pacheco's, How to guides,

and right now i'm facing an issue, i already created the MAFlogon class which one are authenticating users and let they use the apps in multiples devices,

but i wanna know if is possible to make the logoff of this user in one device, for example, by the click of one button, finish all the activity of that user in one device and when someone starts the app again will be redirected to the credentials SMP page,

I'm just needing this step to finish my app, i did some research on the internet and here in scn and i didn't find anything that could help me on that, so if you guys can help with some code will be trully appreciate.

Thanks a lot for the comprehension, and have a nice day...

Tags edited by: Jitendra Kansal

Accepted Solutions (0)

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

Hi Vinicius,

You can un-register the user using the below code:

private void doLogout() {

//delete registered user

logonUIFacade.deleteUser();

//restart logon process

doLogon();

}

More info: http://help.sap.com/saphelp_smp305sdk/helpdata/en/7c/09250170061014bb05d2c9cd16418c/frameset.htm

Regards, Midhun

SAP Customer Experience Group - CEG