OAuth 2 on Android (Principles using Google Apis)
android2ee (Seguy Mathias)
2233

Hi! 
Thx for great job! It really helped me. 
But, could you explain why do we need to pass “MainActivity.class” as the param instead LoginActivity.class? (OAuthInterceptor.class )
<< 
//you should launch the loginActivity to fix that:
Intent i = new Intent(MyApplication.instance, MainActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
MyApplication.instance.startActivity(i);
 >>

Like what you read? Give Udovyk Serhei a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.