Questions tagged as 'android-permission'

1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28
1
answer

FileUriExposedException error on Android N

Hello friends I'm facing the following error:    android.os.FileUriExposedException: file: ///storage/emulated/0/Pictures/1488344088086.jpg exposed beyond app through ClipData.Item.getUri (). The intention is to open the camera, hit a pho...
asked by 01.03.2017 / 06:04
1
answer

Android 6 problem with map.setMyLocationEnabled (true) [duplicate]

I'm having a problem with google api 23+ specifically in the mapa.setMyLocationEnabled(true); method You need permission to run, and in android 6.0+, I can not implement the new permissions method. @Override public void onMapReady...
asked by 23.08.2016 / 05:27
2
answers

Installation blocked when debugging app by Android Studio

When trying to debug or install an application that I'm developing, the following message appears on the device where the APK is being installed. Locked installation. This app contains code created to circumvent Android security protect...
asked by 12.07.2016 / 10:39
1
answer

Android Widget - Permission Denial

I'm having a permission problem that has slipped a bit from my knowledge. Inside a widget I inserted a button, which when pressing I get the following message:    04-13 14: 10: 44.340: E / DatabaseUtils (2362): java.lang.SecurityException: Pe...
asked by 13.04.2014 / 19:35
1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28
1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28
1
answer

Permission denied when accessing gallery image [duplicate]

I need to allow the user to choose an image from the gallery and for this I'm trying to get the application to ask the user for permission. I created the variable ok to give the user permission, if everything is right, its value is set...
asked by 22.08.2016 / 19:21
1
answer

___ ___ erkimt How to minimize the reduction of compatibiliade due to the use of permissions? ______ qstntxt ___

In my new version when putting these permissions in Manifest, I had a reduction of compatibility with several devices, would I have some way to verify this or who does not support these permissions will be left out anyway? %pre%     

______ azszpr45473 ___

One of the reasons for this problem is that your app requires GPS (ACCESS_FINE_LOCATION) to accurately access location. That is, if a device does not have GPS, it is excluded from the compatibility list.

One solution is to use ACCESS_COARSE_LOCATION, which gets the location over the network. This form is less precise, but works for some applications (I do not know if this is your case).

Another way is to add the following to your %code% :

%pre%

Or:

%pre%

This informs that even your app needing GPS, you treat the situation for cases where there is not. Then, non-GPS devices can install your app.

Another detail that limits a lot of compatibility is the minimum version of Android ( %code% ) required to run the app. If the minimum version is very recent, you will probably delete many devices from the compatibility list.

For example, if the minimum version is API 14, Android 4.0, you can reach up to 90.4% of devices.

12/2014 Reference.

    
___

In my new version when putting these permissions in Manifest, I had a reduction of compatibility with several devices, would I have some way to verify this or who does not support these permissions will be left out anyway? <uses-permission a...
asked by 30.12.2014 / 00:46
0
answers

How to insert runtime permission into a webview that gets the user's location?

So I'm starting to create a webview and the site I'm basing on has an option to get the coordinates of a certain location, on the site this works perfectly, but when I put in APP it opens the Google maps (which is what I want) only that it...
asked by 03.12.2017 / 04:22