When I run my Android app from within Android Studio, the app's main activity launches but, if I click on the app icon, I get the following message in the logcat and I'm taken to the App Info screen of Settings:
ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@7139bd9 com.my.package.name E/packa.na: Invalid ID 0x00000000
My app has a basic button to launch Azure's Active Directory B2C and I use Chrome Custom Tabs for completing this authentication.
App's build.gradle
:
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
...
minSdkVersion 21
targetSdkVersion 29
multiDexEnabled true
...
}
...
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.browser:browser:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'androidx.core:core-ktx:1.1.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50"
Manifest
:
<activity
android:name=".view.MainActivity"
android:theme="@style/AppTheme.Launcher"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="login"
android:scheme="myoauth"/>
</intent-filter>
</activity>
User contributions licensed under CC BY-SA 3.0