[mono-android] AndroidManifest - intent filter to launch app from URL

mkowalski mkowalski at acumeta.com
Mon Jan 30 20:55:01 UTC 2012


I ran into this as well - the issue is the way that the 'MainLauncher'
property of ActivityAttribute is handled in conjunction with the
IntentFilterAttribute. If you open your AndroidManifest.xml file (<project
dir>\obj\Debug\android), you'll notice that the filters for the launcher and
for the URL are combined, which will not work. Also, you need to change the
second filter designed to catch the URL.

Try this:

[Activity(LaunchMode = Android.Content.PM.LaunchMode.SingleTask)]
[IntentFilter(new[] { Intent.ActionMain }, Categories = new[] {
Intent.CategoryLauncher })]
[IntentFilter(new[] { Intent.ActionView }, Categories = new[] {
Intent.CategoryDefault, Intent.CategoryBrowsable }, DataScheme = "http",
DataHost = "android.devbuzz.com")]



--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/AndroidManifest-intent-filter-to-launch-app-from-URL-tp5441404p5442613.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list