Vuelva después de llamar Intent.ACTION_VIEW en android
Mi aplicación tiene 3 actividades A, B, C. La actividad A llama a B. En B, llamo a Intent.ACTION_VIEW para realizar la autenticación con Twitter de la siguiente manera:
public static void DoAuthen(Context context, String CallBackUrl) throws OAuthMessageSignerException, OAuthNotAuthorizedException,
OAuthExpectationFailedException, OAuthCommunicationException {
httpOauthConsumer = new CommonsHttpOAuthConsumer(context.getString(R.string.Twitter_ConsumerKey), context
.getString(R.string.Twitter_ConsumerSecret));
httpOauthprovider = new DefaultOAuthProvider("http://twitter.com/oauth/request_token", "http://twitter.com/oauth/access_token",
"http://twitter.com/oauth/authorize");
String authUrl = httpOauthprovider.retrieveRequestToken(httpOauthConsumer, CallBackUrl);
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(authUrl)));
}
Después de la autenticación, se vuelve a llamar a Mi aplicación en la actividad B. Aquí B llama a C. Ahora, si presiono el botón Atrás, se navegará al navegador (que antes se autenticaba con Twitter) en lugar de a B y luego a A. ¿Cómo puede ¿Resuelvo esto?