No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE]
See original GitHub issueWe picked up this crash report form HockeyApp in our production builds from our users. It seems to be originating from the package. Login and Registration works normally on the Android platform for us so this seems to be some special circumstance that I’m unclear of why it might occur (Activity was recycled somehow during login/registration?)
Android Version: 7.0 Microsoft.Identity.Client: 1.1.2-preview0008 Xamarin.Forms: 2.5.0.280555 Xamarin.android.Support.v4: 26.1.0.1
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://login.microsoftonline.com/... pkg=com.android.chrome launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
android.app.Instrumentation.checkStartActivityResult()Instrumentation.java:1839
android.app.Instrumentation.execStartActivity()Instrumentation.java:1531
android.app.Activity.startActivityForResult()Activity.java:4399
android.app.Activity.startActivityForResult()Activity.java:4358
android.app.Activity.startActivity()Activity.java:4682
android.app.Activity.startActivity()Activity.java:4650
microsoft.identity.client.AuthenticationActivity.n_onResume(Native Method)
microsoft.identity.client.AuthenticationActivity.onResume()AuthenticationActivity.java:48
android.app.Instrumentation.callActivityOnResume()Instrumentation.java:1277
android.app.Activity.performResume()Activity.java:7088
android.app.ActivityThread.performResumeActivity()ActivityThread.java:3768
android.app.ActivityThread.handleResumeActivity()ActivityThread.java:3832
android.app.ActivityThread.handleLaunchActivity()ActivityThread.java:2994
at android.app.ActivityThread.-wrap14(ActivityThread.java)
android.app.ActivityThread$H.handleMessage()ActivityThread.java:1631
android.os.Handler.dispatchMessage()Handler.java:102
android.os.Looper.loop()Looper.java:154
android.app.ActivityThread.main()ActivityThread.java:6682
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()ZygoteInit.java:1534
com.android.internal.os.ZygoteInit.main()ZygoteInit.java:1424
Xamarin caused by: Android.Content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://login.microsoftonline.com/... pkg=com.android.chrome launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()<0fd49e8d72c3425a9142b62bf7bb5408>:0
Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod(JniObjectReference instance, JniObjectReference type, JniMethodInfo method, JniArgumentValue* args)<7bdf46b1ae9e4b5dbe64b85267ccc954>:0
Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod(string encodedMember, IJavaPeerable self, JniArgumentValue* parameters)<7bdf46b1ae9e4b5dbe64b85267ccc954>:0
Android.Content.ContextWrapper.StartActivity(Intent intent)<7eefb6695f9c4eb7ae386b276deee35f>:0
Microsoft.Identity.Client.AuthenticationActivity.OnResume()<1a1ee4c087634a4da11ac7e4aec10a38>:0
Android.App.Activity.n_OnResume(IntPtr jnienv, IntPtr native__this)<7eefb6695f9c4eb7ae386b276deee35f>:0
at (wrapper dynamic-method) System.Object.dc10c0e9-8c32-4e82-8a0d-868e3b0d0233(intptr,intptr)
--- End of managed Android.Content.ActivityNotFoundException stack trace ---
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://login.microsoftonline.com/... pkg=com.android.chrome launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
android.app.Instrumentation.checkStartActivityResult()Instrumentation.java:1839
android.app.Instrumentation.execStartActivity()Instrumentation.java:1531
android.app.Activity.startActivityForResult()Activity.java:4399
android.app.Activity.startActivityForResult()Activity.java:4358
android.app.Activity.startActivity()Activity.java:4682
android.app.Activity.startActivity()Activity.java:4650
microsoft.identity.client.AuthenticationActivity.n_onResume(Native Method)
microsoft.identity.client.AuthenticationActivity.onResume()AuthenticationActivity.java:48
android.app.Instrumentation.callActivityOnResume()Instrumentation.java:1277
android.app.Activity.performResume()Activity.java:7088
android.app.ActivityThread.performResumeActivity()ActivityThread.java:3768
android.app.ActivityThread.handleResumeActivity()ActivityThread.java:3832
android.app.ActivityThread.handleLaunchActivity()ActivityThread.java:2994
at android.app.ActivityThread.-wrap14(ActivityThread.java)
android.app.ActivityThread$H.handleMessage()ActivityThread.java:1631
android.os.Handler.dispatchMessage()Handler.java:102
android.os.Looper.loop()Looper.java:154
android.app.ActivityThread.main()ActivityThread.java:6682
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()ZygoteInit.java:1534
com.android.internal.os.ZygoteInit.main()ZygoteInit.java:1424
The interesting lines in this stack trace seem to be:
android.app.Activity.startActivity()Activity.java:4650
microsoft.identity.client.AuthenticationActivity.n_onResume(Native Method)
microsoft.identity.client.AuthenticationActivity.onResume()AuthenticationActivity.java:48
android.app.Instrumentation.callActivityOnResume()Instrumentation.java:1277
We have a dev and a prod instance of Azure B2C and are registering the Activity Intent filters in our AndroidManifest.xml
as such (guids replaced with fake IDs, but they are different):
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myapp" android:installLocation="auto" android:icon="@drawable/icon" android:versionCode="99999" android:versionName="0.0.0">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26" />
<application android:label="MyApp" android:icon="@drawable/icon">
<activity android:name="microsoft.identity.client.BrowserTabActivity">
<!-- Dev -->
<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="msal00000000-0000-0000-0000-000000000000" android:host="auth" />
</intent-filter>
<!-- Prod -->
<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="msal00000000-0000-0000-0000-000000000001" android:host="auth" />
</intent-filter>
</activity>
</application>
</manifest>
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (4 by maintainers)
Top Results From Across the Web
No Activity found to handle Intent : android.intent.action.VIEW
Uri uri = Uri.parse("www.google.com"); Intent intent = new Intent(Intent.ACTION_VIEW, uri);. throws an ActivityNotFoundException. If you prepend ...
Read more >Easy Solution to No Activity Found To Handle Intent Error
It's an error message that is caused because the device is not an official android, Google Play is not supported, or it's a...
Read more >No Activity found to handle Intent : android.intent.action.VIEW
Android : No Activity found to handle Intent : android. intent. action. VIEW [ Beautify Your Computer ...
Read more >Chrome not opening as default browser on Android 13 when ...
When querying Chrome as a default browser to open a webpage it does not appear on Android 13. Steps to reproduce : 1)...
Read more >Common intents
An intent lets you start an activity in another app by describing an action you'd like to perform, such as "view a map"...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @kensykora Can you try adding these lines to your
AndroidManifest.xml
?@hearbeathorror - You can file issues for the Android team here: https://github.com/AzureAD/microsoft-authentication-library-for-android