2010-07-30 37 views
3

我正在Twitter應用程序中,我打開瀏覽器的用戶認證和我發起認證瀏覽器Android的回調URL調用的OnCreate

問題是驗證它再次調用的OnCreate Twitter分享類之後,而不是調用onNewIntent方法時傳遞call_back網址, 這是爲什麼 ?我的另一個班級工作正常,我無法找到差異任何想法通過查看下面的ocde爲什麼它再次調用oncreate?

  <activity android:name=".TwitterShare" 
      launchMode="singleInstance"> 
       <intent-filter> 
       <action android:name="android.intent.action.VIEW" /> 
       <category android:name="android.intent.category.DEFAULT" /> 
       <category android:name="android.intent.category.BROWSABLE" /> 
       <data android:scheme="myapp" android:host="oauth1" /> 
       </intent-filter> 
      </activity> 


@Override 
    protected void onNewIntent(Intent intent) { 

     super.onNewIntent(intent); 
    } 

回答

4

可恥的是我和所有你們的,小的事情來解決

launchMode = 「singleInstance」,而不是使用Android:launchMode = 「singleInstance」

0

你不覺得它應該是LaunchMode = SingleTop而不是單個實例?

相關問題