I am making twitter application in which i open browser for user authentication and i pass call_back URL when launching authentication browser
problem is after authenticating it is calling again oncreate of TWitterShare class instead calling onNewIntent method, why is that ? my another class working fine i am unable to find difference any idea by looking at the following ocde why it is calling oncreate again ?
<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);
}