Questions tagged as 'android-permission'

1
answer

Problems with permission ACCESS_COARSE_LOCATION android studio

I'm building a project that uses the GsmCellLocation class. I can know this information from the TelephonyManager class. For this, I need permissions where the problem arises. An ACCESS_COARSE_LOCATION permission When arriving at the l...
asked by 03.11.2015 / 00:45
2
answers

android.permission.MODIFY_PHONE_STATE - How to assign system permission?

I need to use the following permission in my App: android.permission.MODIFY_PHONE_STATE But it shows an error in Manifest saying that the permission is only granted to system apps. I need to intercept the connection in order to disconnec...
asked by 29.08.2014 / 14:05
1
answer

Error: The apk has permissions that require a privacy policy set for the app, eg: android.permission.CAMERA

I'm trying to publish an APP in my test stores, the build works normal, but when I try to publish to the store the error described above appears. From what I've seen it's necessary to tell Google Play Console a privacy policy because i...
asked by 13.09.2018 / 19:26
1
answer

Runtime permissions on android

I have a code in android studio that asks the user, permission to use the phone service (to get the imei) Well, my code is working perfectly, with a problem, when entering the page, a message is displayed if the permission was not conceived,...
asked by 19.12.2017 / 07:03
2
answers

Android ActivityCompat

Hello from what I researched from android 7.1, it is necessary to request permission to run for user and it is necessary to use the ActivityCompat class to do this, my application saves a PDF to disk and opens it, however I can not use th...
asked by 04.09.2018 / 18:07
1
answer

Get permission to write to SD Card on Android 6+

I'm creating an app that reads and writes files to Android, so I can not get permission to write to the device's external storage. After searching I saw that I need to call this screen to get permission, but I do not know what it's called there....
asked by 17.06.2017 / 09:09
2
answers

Difficulty with Permission Location Android

I'm trying to get an open-source project found on the internet but I'm having some problems trying to implement the permissions for the Location now required by compileSdkVersion 23 and buildToolsVersion "23.0.1" I want to use it. The code I...
asked by 20.11.2016 / 15:40
1
answer

Error fetching location

I have a project that when accessing the activity, it already searches the place and fills the data, to save them, later. But when it is the first access, when it looks for the permissions, it always understands that it was not given permission...
asked by 27.06.2016 / 20:38
1
answer

Error java.lang.NoSuchMethodError: MainActivity.checkSelfPermission

I'm making several attempts, but I can not get a user's current location using the Location API. I'm running the following example: public class MainActivity extends AppCompatActivity implements GoogleApiClient.ConnectionCallbacks, GoogleAp...
asked by 20.08.2016 / 16:42
2
answers

SecurityException android [duplicate]

When I run the following code in Android Studio: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activi...
asked by 03.06.2016 / 16:37