EduardoElias Well-Known Member Licensed User Longtime User Oct 7, 2021 #1 I have an option to open the android settings that works in many android versions and flavors However on android box version 11 it is having this problem: B4X: Copy android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/com.android.settings.Settings}; have you declared this activity in your AndroidManifest.xml? Code: Copy Sub android_click Dim i As Intent i.Initialize("", "") i.SetComponent("com.android.settings/.Settings") StartActivity(i) End Sub
I have an option to open the android settings that works in many android versions and flavors However on android box version 11 it is having this problem: B4X: Copy android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/com.android.settings.Settings}; have you declared this activity in your AndroidManifest.xml? Code: Copy Sub android_click Dim i As Intent i.Initialize("", "") i.SetComponent("com.android.settings/.Settings") StartActivity(i) End Sub
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2021 #2 Always use Try / Catch with such intents. You can see various settings actions here: https://developer.android.com/reference/android/provider/Settings Upvote 0
Always use Try / Catch with such intents. You can see various settings actions here: https://developer.android.com/reference/android/provider/Settings