android-permissions

Why my map app crashes if I set maxSdkVersion in the WRITE_EXTERNAL_STORAGE permission?

主宰稳场 提交于 2019-12-20 15:10:43
问题 I've set my map following the instructions in this link. And set the WRITE_EXTERNAL_STORAGE permission in accordance with the recomended by the Official Android Documentation, that is request this permission only for API level 18 and lower. So, I have this manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myapp" > <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18"

Putting permissions to manifest of Android .aar library project

≯℡__Kan透↙ 提交于 2019-12-20 12:24:27
问题 I am developing an Android project which includes two modules where one is a library module for producing .aar files and another is a sample app utilising the produced .aar file. Thus, there are two AndroidManifest.xml files in this project. Say I am developing a Bluetooth library, so I put permissions for bluetooth in library's manifest file. By including this library .aar as dependency, can I omit the <uses-permission> tag in the app's manifest file? In other words, does Android app "merge"

Android permissions: Perform task after user pressed “Allow”

心已入冬 提交于 2019-12-20 10:27:53
问题 I would like to know if there is a way we can identify the event when the user has pressed "Allow" button for contact details access/ calendar access etc., I know there is a way to ask for permissions with the ActivityCompat.requestPermissions but is there a way to perform an action right after the user grants a permission? 回答1: First Define the variable: public static int MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION = 1; request permission using: if (ActivityCompat.checkSelfPermission(this,

Android Marshmallow, “dangerous” protection level and system components/apps

喜欢而已 提交于 2019-12-20 10:06:06
问题 I'm developing an application that going to be pr-installed (as a system app) on the firmware. from the documentation so far about the relation between system apps, new permissions model, and the protection levels - I don't understand exactly when system app needs (if at all) to request user permission. My problems starts when I try to use the WRITE_EXTERNAL_STORAGE permission. from the documentation I can see that it marked as "dangerous" permission. - does "dangerous" permissions grant

Xamarin Support Package error

自闭症网瘾萝莉.ら 提交于 2019-12-20 07:28:32
问题 Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Android resource directory C:\Users\Srinivasarao\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3\embedded\./ doesn't exist. Sample.Droid Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Java library file C:\Users\Srinivasarao\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3\embedded\classes.jar doesn't exist. Sample.Droid Please install package: 'Xamarin.Android

Can't turn on location on android api23?

丶灬走出姿态 提交于 2019-12-20 05:38:16
问题 I have used the following code and the dialogue that asks for permission shows as expected. But when I click "allow" it doesn't do anything. The log message doesn't appear as if the permission wasn't granted so I went to my parameters to verify if location is "on" and it was "off". Wasn't it supposed to be on because I granted the app access to my location ? If I manually turn it "on" and then run the app again, once it asks for my permission, it works and shows the log message but isn't the

Android M Request Multiple permission at a single time

Deadly 提交于 2019-12-20 03:16:33
问题 Hi i am updating my application jaffna Temples . so that it can support Android M devices (v 6.0 and above). Is there a way i can request multiple permission at a single time. eg: I want to get the permission to read phone state and location information at the same time. Using this ways i can request permission one by one. But i want to rest both permission at once at the start of the application. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (checkSelfPermission(Manifest

Android M Request Multiple permission at a single time

血红的双手。 提交于 2019-12-20 03:16:06
问题 Hi i am updating my application jaffna Temples . so that it can support Android M devices (v 6.0 and above). Is there a way i can request multiple permission at a single time. eg: I want to get the permission to read phone state and location information at the same time. Using this ways i can request permission one by one. But i want to rest both permission at once at the start of the application. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (checkSelfPermission(Manifest

App requests aren't showing up

纵然是瞬间 提交于 2019-12-20 03:05:36
问题 I have a map activity in my app. I'm trying to request location permissions on it, but the request permissions are not showing up. I have no idea why... This is my full code: public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private static final String FIREBASE_URL="https://****.firebaseio.com/"; private Firebase firebaseRef; private LocationManager locationManager; private GoogleMap mMap; SupportMapFragment mapFrag; boolean bPermissionGranted; @Override

App requests aren't showing up

▼魔方 西西 提交于 2019-12-20 03:05:26
问题 I have a map activity in my app. I'm trying to request location permissions on it, but the request permissions are not showing up. I have no idea why... This is my full code: public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private static final String FIREBASE_URL="https://****.firebaseio.com/"; private Firebase firebaseRef; private LocationManager locationManager; private GoogleMap mMap; SupportMapFragment mapFrag; boolean bPermissionGranted; @Override