android-permissions

External Storage Permission Issue with MediaProvider / Ring Tones

こ雲淡風輕ζ 提交于 2019-12-18 17:15:11
问题 Some of my users have reported to Google Play the following error when trying to select a ringtone in my app. (there's more to it, but it's not relevant) java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=5738, uid=10122 requires android.permission.READ_EXTERNAL_STORAGE I assume this issue is happening due to certain tones that are on external storage. I don't want to include the READ_EXTERNAL

How to force permission “android.permission.CAMERA” to be added to manifest in Codename one

半世苍凉 提交于 2019-12-18 17:12:19
问题 I am trying to show a live preview of the rear facing camera in Codename One. I use for that the native interface (I am targetting Android first). To allow my app to use the camera without messing up with build hints, I added these lines in my Main Form : if (Capture.hasCamera()){ Dialog.show("Appareil photo détecté", "Votre matériel est bien équipé d'un appareil photo!", "OK", null); } I did that because Codename One blog stated android.hardware.camera & android.permission.RECORD_AUDIO - are

How to force permission “android.permission.CAMERA” to be added to manifest in Codename one

China☆狼群 提交于 2019-12-18 17:11:13
问题 I am trying to show a live preview of the rear facing camera in Codename One. I use for that the native interface (I am targetting Android first). To allow my app to use the camera without messing up with build hints, I added these lines in my Main Form : if (Capture.hasCamera()){ Dialog.show("Appareil photo détecté", "Votre matériel est bien équipé d'un appareil photo!", "OK", null); } I did that because Codename One blog stated android.hardware.camera & android.permission.RECORD_AUDIO - are

Exception java.lang.SecurityException: reading ..MediaDocumentsProvider … requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()

微笑、不失礼 提交于 2019-12-18 16:52:53
问题 I found this issue only in some devices when trying to pick the picture for the profile image. While checking in the emulator these issue are not seen but on live version of the app this issues are facing by this users. Screenshot captured from the firebase crash report. Please help me to figure out the issue. AndroidMenifest.xml ... <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses

How to fix “Issue: Violation of Families Policy Requirements”

被刻印的时光 ゝ 提交于 2019-12-18 16:52:18
问题 I've tried to publish an app on Play store but it's rejected and I've received an email titled: "Issue: Violation of Families Policy Requirements" And it also followed by: "Apps that contain elements that appeal to children must comply with all Families Policy Requirements. We found the following issue(s) with your app: Eligibility Issue <> In order to review your app for “Designed for Families” eligibility, we will need you to provide a test login account. Please provide login credentials to

How to fix “Issue: Violation of Families Policy Requirements”

你。 提交于 2019-12-18 16:52:13
问题 I've tried to publish an app on Play store but it's rejected and I've received an email titled: "Issue: Violation of Families Policy Requirements" And it also followed by: "Apps that contain elements that appeal to children must comply with all Families Policy Requirements. We found the following issue(s) with your app: Eligibility Issue <> In order to review your app for “Designed for Families” eligibility, we will need you to provide a test login account. Please provide login credentials to

Permission issue while starting a service from android

倾然丶 夕夏残阳落幕 提交于 2019-12-18 14:53:14
问题 I have written a service as part of an application. I try to call this service from a second application using the following code: Intent intent = new Intent () ; intent.setClassName("com.test" ,"com.test.DownloadService") ; // Create a new Messenger for the communication back Messenger messenger = new Messenger(handler); intent.putExtra("MESSENGER", messenger); intent.setData(Uri.parse("http://www.vogella.com/index.html")); intent.putExtra("urlpath", "http://www.vogella.com/index.html");

Permission issue while starting a service from android

北城以北 提交于 2019-12-18 14:52:58
问题 I have written a service as part of an application. I try to call this service from a second application using the following code: Intent intent = new Intent () ; intent.setClassName("com.test" ,"com.test.DownloadService") ; // Create a new Messenger for the communication back Messenger messenger = new Messenger(handler); intent.putExtra("MESSENGER", messenger); intent.setData(Uri.parse("http://www.vogella.com/index.html")); intent.putExtra("urlpath", "http://www.vogella.com/index.html");

Checking if permissions have been granted already by user in Android

那年仲夏 提交于 2019-12-18 12:17:15
问题 I have defined all the dangerous permissions in a String array as below: String[] perms = {Manifest.permission.READ_CONTACTS, Manifest.permission.READ_PHONE_STATE, Manifest.permission.CALL_PHONE, Manifest.permission.MODIFY_PHONE_STATE}; Then to check if they have been granted I run this: for (int i = 0; i < perms.length; i++) { if(ContextCompat.checkSelfPermission(this,perms[i])!=PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(this,perms, permsRequestCode); break; } }

Checking if permissions have been granted already by user in Android

喜欢而已 提交于 2019-12-18 12:16:42
问题 I have defined all the dangerous permissions in a String array as below: String[] perms = {Manifest.permission.READ_CONTACTS, Manifest.permission.READ_PHONE_STATE, Manifest.permission.CALL_PHONE, Manifest.permission.MODIFY_PHONE_STATE}; Then to check if they have been granted I run this: for (int i = 0; i < perms.length; i++) { if(ContextCompat.checkSelfPermission(this,perms[i])!=PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(this,perms, permsRequestCode); break; } }