android - Make a link to a url start up my app and not open embedded -
i defined following intent filter in application in order make respond url links.
<intent-filter> <data android:scheme="http"/> <data android:scheme="https"/> <category android:name="android.intent.category.default"/> <category android:name="android.intent.category.browsable"/> <action android:name="android.intent.action.view"/> </intent-filter>
now when click link in external app (from example link sent sms) opens app in embedded way in current application. meaning if go background see app inside sms application. want link make application opened separately. correct behaviour, , happens example when choosing chrome/ android native browser app open link.
is there way change app well?
you have set launchmode
of activity singletask
or singleinstance
. force system open new task app instead of opening in same task sms-app or whatever.
it should somehow this:
<activity android:name="youractivity" android:launchmode="singletask"> </activity>
for more information, see documentation: http://developer.android.com/guide/topics/manifest/activity-element.html#lmode
Comments
Post a Comment