S smartpro Member Licensed User Longtime User May 21, 2013 #1 I devloping Browsing Application, how can i add it to system shell so when user click on link then my app show in browsers list and when click on my app in list my app run url . thank you
I devloping Browsing Application, how can i add it to system shell so when user click on link then my app show in browsers list and when click on my app in list my app run url . thank you
yttrium Active Member Licensed User Longtime User May 21, 2013 #2 smartpro said: I devloping Browsing Application, how can i add it to system shell so when user click on link then my app show in browsers list and when click on my app in list my app run url . thank you Click to expand... You should do this with intent filters. Upvote 0
smartpro said: I devloping Browsing Application, how can i add it to system shell so when user click on link then my app show in browsers list and when click on my app in list my app run url . thank you Click to expand... You should do this with intent filters.
Erel B4X founder Staff member Licensed User Longtime User May 21, 2013 #3 See this tutorial: Intent Filters - Intercepting SMS messages in the background You should add an intent filter similar to: Code: Copy <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:mimeType="*/*" android:host="*" android:scheme="http" /> </intent-filter> Upvote 0
See this tutorial: Intent Filters - Intercepting SMS messages in the background You should add an intent filter similar to: Code: Copy <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:mimeType="*/*" android:host="*" android:scheme="http" /> </intent-filter>
S smartpro Member Licensed User Longtime User May 25, 2013 #4 thank you .. how can i get url which user is pressed to open it? Upvote 0
S smartpro Member Licensed User Longtime User May 25, 2013 #5 sorry .. when i try code by adding it to manifest file application no show in browser list (on device.) <code> AddActivityText(main, <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:mimeType="*/*" android:host="*" android:scheme="http" /> </intent-filter> ) what is the problem please? </code> Upvote 0
sorry .. when i try code by adding it to manifest file application no show in browser list (on device.) <code> AddActivityText(main, <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:mimeType="*/*" android:host="*" android:scheme="http" /> </intent-filter> ) what is the problem please? </code>
Erel B4X founder Staff member Licensed User Longtime User May 28, 2013 #6 how can i get url which user is pressed to open it? Click to expand... You should check the values stored in Activity.GetStartingIntent. How is the intent sent? Which application sends it? Upvote 0
how can i get url which user is pressed to open it? Click to expand... You should check the values stored in Activity.GetStartingIntent. How is the intent sent? Which application sends it?
S smartpro Member Licensed User Longtime User May 28, 2013 #7 thank you for your respond.. I mean when user click on link in other applications then browsers list is shown how can i know this link to open it in webview. anyway now i cannot display my app on browsers list after add above code at manifest file. thank you. Upvote 0
thank you for your respond.. I mean when user click on link in other applications then browsers list is shown how can i know this link to open it in webview. anyway now i cannot display my app on browsers list after add above code at manifest file. thank you.
Erel B4X founder Staff member Licensed User Longtime User May 30, 2013 #8 This is the correct filter: Code: Copy AddActivityText(main, <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http"/> </intent-filter> ) Upvote 0
This is the correct filter: Code: Copy AddActivityText(main, <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http"/> </intent-filter> )
S smartpro Member Licensed User Longtime User May 30, 2013 #9 thank you .. Now Has successfully. Upvote 0