question

BhanuprakashRongali-5190 avatar image
0 Votes"
BhanuprakashRongali-5190 asked LeonLu-MSFT commented

android.content.ActivityNotFoundException at net.openid.appauth.AuthorizationService.prepareAuthorizationRequestIntent(AuthorizationService.java:351)

Getting Activity not found while running in Android 11 , using with Chrome browser

MakeAuthRequest:Android.Content.ActivityNotFoundException: Exception of type 'Android.Content.ActivityNotFoundException' was thrown.
at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0006e] in <bd6bd528a8784b7caf03e9f25c9f0d7b>:0
at Android.Runtime.JNIEnv.CallVoidMethod (System.IntPtr jobject, System.IntPtr jmethod, Android.Runtime.JValue* parms) [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnv.g.cs:264
at OpenId.AppAuth.AuthorizationService.PerformAuthorizationRequest (OpenId.AppAuth.AuthorizationRequest request, Android.App.PendingIntent completedIntent) [0x0006e] in <8220ff7032c44b3fab43311d8877aa65>:0
at OktaDemo.XF.Droid.Implementations.LoginProvider.MakeAuthRequest (OpenId.AppAuth.AuthorizationServiceConfiguration serviceConfig, OpenId.AppAuth.AuthState authState) [0x0006c] in C:\XamarinWorkspace\Okta\okta-appauth\okta-appauth\OktaDemo.XF\OktaDemo.XF.Android\Implementations\LoginProvider.cs:75
--- End of managed Android.Content.ActivityNotFoundException stack trace ---
android.content.ActivityNotFoundException
at net.openid.appauth.AuthorizationService.prepareAuthorizationRequestIntent(AuthorizationService.java:351)
at net.openid.appauth.AuthorizationService.performAuthorizationRequest(AuthorizationService.java:221)
at net.openid.appauth.AuthorizationService.performAuthorizationRequest(AuthorizationService.java:142)
at net.openid.appauth.AuthorizationServiceConfiguration_RetrieveConfigurationCallback.n_onFetchConfigurationCompleted(Native Method)
at net.openid.appauth.AuthorizationServiceConfiguration_RetrieveConfigurationCallback.onFetchConfigurationCompleted(AuthorizationServiceConfiguration_RetrieveConfigurationCallback.java:30)
at net.openid.appauth.AuthorizationServiceConfiguration$ConfigurationRetrievalAsyncTask.onPostExecute(AuthorizationServiceConfiguration.java:364)
at net.openid.appauth.AuthorizationServiceConfiguration$ConfigurationRetrievalAsyncTask.onPostExecute(AuthorizationServiceConfiguration.java:305)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7660)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you want to auth account in the Android? And please try to add following tag to your manifest tag of AndroidManifest.xml directly.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.sliderimage">
    <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" />
    <application android:label="SliderImage.Android" android:theme="@style/MainTheme"></application>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <queries>
        <intent>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="https" />
        </intent>

        <intent>
            <action android:name="android.support.customtabs.action.CustomTabsService" />
        </intent>
    </queries>
</manifest>
0 Votes 0 ·

0 Answers