3

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);
  }
d-man
  • 57,473
  • 85
  • 212
  • 296

2 Answers2

4

Shame on me and all of you guys, small thing to fix

launchMode="singleInstance" instead use android:launchMode="singleInstance"

d-man
  • 57,473
  • 85
  • 212
  • 296
0

DonT you think it should have been LaunchMode = SingleTop instead of single instance ??

Orkun
  • 6,998
  • 8
  • 56
  • 103