Issue when I press switch first and second time request dialog show and press Do not allow the switch work normally. But third time when I press switch the request dialog not showing and I always get the value of
Continue readingTag: android-permissions
Can 'signature permissions' be used in an AVD on Android Studio?
Issue I am looking to test Android permissions that marked as ‘signature’ in and AVD within Android Studio. I have set up the key store & key and attempted to use/request signature permissions in my Android app. I declare it
Continue readingPermission to display pop-up windows while running in the background
Issue I have a project that needs to display pop-up windows while running in the background permission. How to ask the user permission. I already tried the Setting.canDrawOverlay() but it doesn’t work for the app that killed. this is my
Continue readingAndroid 13 – READ_EXTERNAL_STORAGE_PERMISSION still usable
Issue The behaviour changes for Android 13 mention this: If your app targets Android 13, you must request one or more new permissions instead of the READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions. (https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions) The new permissions are: Images and photos: READ_MEDIA_IMAGES Videos:
Continue readingRead sensor info with AndroidX in Android Automotive OS – not able to add permission
Issue I am trying to read information from an AVD running Android Automotive OS 13. I am using AndroidX and attempting to access the vehicle’s speed. A minimal example that does not work: AutomotiveCarHardwareManager(context).carInfo.addSpeedListener(Executors.newSingleThreadExecutor()) {} It requires a permission to
Continue readingClass not found android.permission.INTERNET Ionic / Android
Issue When I try to launch my application on my smartphone (Samsung Galaxy J5) after the build, my application instantly crash with the following error: java.lang.RuntimeException: Unable to instantiate application android.permission.INTERNET: java.lang.ClassNotFoundException: Didn’t find class “android.permission.INTERNET” on path: DexPathList[[zip file
Continue readingAndroid: ActivityCompat.requestPermissions does not show a popup (Android 13, targetSdkVersion=33)
Issue There are many (one, two, three, four) questions on this topic on SO already. However, none of the answers I have found so far resolves the issue for me. The problem is that the ActivityCompat.requestPermissions does not trigger a
Continue readingIs there any alternate of ACCESS_MEDIA_LOCATION permission to save images, seems it now comes with photo picker in android 14?
Issue My app captures photos through/inside the app only, and saves it to \pictures\MyAppFolder. The app doesn’t read/required to read any existing images, as it’s not showing any image inside the app. So, to save images to phone storage I
Continue readingHow to add the "about" button in permissions for an Android app?
Issue I recently downloaded the Fitbit app and wanted to give it all permissions. I noticed that each permission has an "About" button that redirects users to a website about the permission. I’ve added an activity that shows the permissions
Continue readingPermission Requests causes infinite loop in OnResume
Issue In API >= 23, we are required to ask users for permission at run-time. But for some reason, the permissions are causing onResume to be called infinitely. What causes this? @Override protected void onResume() { super.onResume(); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.ANYPERMISSION},1);
Continue reading