<\/HEAD>
Protože musíte použít tuto metodu.<\/P>
private void <\/SPAN>setupOAuthManager() {
String clientId = getResources().getString(R.string.client_id<\/SPAN>);
String redirectUrl = getResources().getString(R.string.redirect_uri<\/SPAN>);
try <\/SPAN>{
OAuthConfiguration oAuthConfiguration = new <\/SPAN>OAuthConfiguration("https:\/\/www.arcgis.com"<\/SPAN>, clientId, redirectUrl);
DefaultAuthenticationChallengeHandler authenticationChallengeHandler = new <\/SPAN>DefaultAuthenticationChallengeHandler(this<\/SPAN>);
AuthenticationManager.setAuthenticationChallengeHandler<\/SPAN>(authenticationChallengeHandler);
AuthenticationManager.addOAuthConfiguration<\/SPAN>(oAuthConfiguration);
} catch <\/SPAN>(MalformedURLException e) {
showError(e.getMessage());
}
}<\/PRE> Nastavil jsem projekt jako veřejný, ale potřebuji se přihlašovat k účtu pokaždé, když zavřu program, abych mohl používat navigaci, což je velmi nepohodlné. Jak zrušit rozhraní, přejít na přihlášení k účtu a stále používat navigaci?<\/P><\/BODY><\/HTML>