android-permissions

Unable to get permission: “android.permission.SET_ALARM”

北战南征 提交于 2019-12-11 03:41:58
问题 I've made an android application and used AlarmManager and Broadcast Receiver to get local notifications. But my Receiver class is not at all being called. I backtraced the issue and found out that my app is not able to get 'SET_ALARM' permission. Please find screenshot below for the same. Screenshot : So to crosscheck the permission issue, I've added the following code in MainActivity.java to check whether the app is able to get permissions or not. I found out that it is not able to get

Permission in calling service from another app

。_饼干妹妹 提交于 2019-12-11 03:38:34
问题 Possible Duplicates: Permission for services, Permission issue while starting a service from android, Exported service does not require permission: what does it mean?, Not allowed to start service Intent without permission etc I have two applications say App "A" and App "B". App A has one service with custom permission and App B wants to call that service. Following is my code snippet App A: : Manifest File <service android:name="SendService" android:permission="android.permission.MyService">

Why am I requesting “Device ID & call information” permission on Android?

那年仲夏 提交于 2019-12-11 03:22:54
问题 Testing my Android app (made in Unity) on the live store shows that it requests "Device ID & call information". As far as I can tell, I don't request these permissions. Here are the permissions I request in my AndroidManifest.xml file. Is this a permission required for all apps? Or is it hidden under one of these other permissions? <uses-permission android:name="com.android.vending.BILLING" /> <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" /> <uses-permission android:name=

Permission denied - missing INTERNET permission?

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:53:06
问题 I'm having problem with the internet permission. Yes I've looked around and I made sure the permission is outside the application tag. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="app.com.example.android.sunshine" > <uses-permission android:name="android.permission.internet" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" >

GrantPermissionCallable: Permission: android.permission.SET_TIME cannot be granted

[亡魂溺海] 提交于 2019-12-11 02:28:31
问题 I'm trying to use the new GrantPermissionRule that's a part of the latest support library. In my Manifest I declare the following: <uses-permission android:name="android.permission.SET_TIME"/> And in my code I call: @Rule public GrantPermissionRule mPermissionRule = GrantPermissionRule.grant(Manifest.permission.SET_TIME); But when I run the test I see the error: 12-28 14:09:35.063 7193-7215/com.blah.test E/GrantPermissionCallable: Permission: android.permission.SET_TIME cannot be granted! 12

Android internet permission ignored

半腔热情 提交于 2019-12-11 00:59:02
问题 I have an application that requires the internet permission but it doesn't seem to be working for me. I added: <uses-permission android:name="android.permission.INTERNET"/> To the manifest (above the application tag) and when I install the app my phone says: "No permissions requested" and the permission dialog doesn't show up. However when I replace INTERNET with CAMERA like so: <uses-permission android:name="android.permission.CAMERA"/> It works fine and shows up under the permissions tab in

Android Marshmallow [API 23] : Bluetooth UUID returns NULL

微笑、不失礼 提交于 2019-12-11 00:58:17
问题 Just updated my android to marshmallow and realized that is not working very well. I have just created an app that reports the Devices and Services (with UUIDs) availables via classical bluetooth: I've tested it in: API 16 API 22 API 23 My manifiest permissions are: <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name=

Activity.requestPermissions vs ActivityCompat.requestPermissions

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 00:56:32
问题 Runtime permission dialog is shown in Android 6.0 or higher, so Activity.requestPermissions(...) which was added in API level 23 makes sense. But why is there another one ( ActivityCompat.requestPermissions(...) ) to be used for below Android 6.0? Does this show runtime permission request dialog in lower versions? What is the difference between Activity.requestPermissions(permissions, requestCode) and ActivityCompat.requestPermissions(activity, permissions, requestCode) Which one should I use

Is onResume() called after onRequestPermissionsResult() in Android?

本秂侑毒 提交于 2019-12-11 00:09:11
问题 I have an activity and i have put checkSelfPermission and requestPermissions methods in onCreate method. I also have an onRequestPermissionsResult method outside of onCreate. Finally i have an onResume method, too. Which one is called first, onResume or onRequestPermissionsResult ? 回答1: The correct chain of events is the following: You call requestPermissions in the Activity's onCreate requestPermissions start running in another thread, because it is designed to not block the UI thread. So

How to resolve permission denied maybe missing internet permission?

蓝咒 提交于 2019-12-10 23:45:49
问题 I am using Netbeans7.2 and entered uses-permission also but i have this error Java.net.Socket Exception Internet denied(Maybe missing internet permission )` my AndroidManifest file like this <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="importacao.dados" android:versionCode="1" android:versionName="1.0"> <application android:label="@string/app_name" > <activity android:name="importacao" android:label="@string/app_name">