cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to logout in SAP BTP SDK for android V5.1.2

imandihemanth
Explorer
0 Likes
224

Hi Experts,

I am using SAP BTP SDK for android version 5.1.2
I have logged in with user A. And I have logged out and cleared data as below.

secureKeyValueStore.deleteStore(AndroidSystem.getContext())
offlineODataProvider.clear()

And again logged in with user B. But it is showing user A data.
How to clear the user A data completely If I login like below
okHttpClient = new OkHttpClient.Builder().addInterceptor(new AppHeadersInterceptor(appID, deviceID, appVersion))
.authenticator(new CustomBasicAuthAuthenticator(username, password, bapStore))
.cookieJar(new WebkitCookieJar())
.retryOnConnectionFailure(true)
.build();
SettingsParameters settingsParameters = new SettingsParameters(serviceURL, appID, deviceID, appVersion);
SettingsProvider.set(settingsParameters);
ClientProvider.set(okHttpClient); Request request = new Request.Builder().get().url(serviceURL + "odata/applications/v4/" + appID).build();

How to clear the pervious session and clear the data properly?

Accepted Solutions (0)

Answers (0)