I checked the twitter-kit-android
(Android Twitter SDK).
The first screenshot is shown when my app can search the com.twitter.android
on the device.The second screenshot is shown when my app cannot search the com.twitter.android
on the device.
My released app has the queries
tag:
<queries><package android:name="com.twitter.android" /></queries>
Because of this, my app can search the twitter
app.
The twitter sdk checks that if the app can search com.twitter.android
then start SingleSignOnActivity
, and it doesn't return token information.But if the app cannot search com.twitter.android
then start OAuthActivity
, and it returns token information.
[update]
Actually, when I remove the queries
tag, my app still can search com.twitter.android
.
In this case, I checked the Merged Manifest
.Even though I don't use the queries
tag, other libraries may use the queries
tag.
I checked the Merged Manifest
, I can found that one library use below queries
:
<queries><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></queries>
After I remove the library dependency, my app cannot search the com.twitter.android
and login works fine