android-permissions

Request Permission from Application class [duplicate]

时光怂恿深爱的人放手 提交于 2021-02-16 16:09:43
问题 This question already has an answer here : Android: ActivityCompat.requestPermissions requires activity and not context :/ (1 answer) Closed 4 years ago . As per the new Android doc, In order to collect certain data, I need to request for permission. So I am doing this : @Override public void onCreate() { super.onCreate(); ... ... if (PermissionUtility.isPermitted(applicationContext, android.Manifest.permission.READ_SMS)) { userNumber = getUserPhoneNumber(); } else { ActivityCompat

Request Permission from Application class [duplicate]

蓝咒 提交于 2021-02-16 16:09:14
问题 This question already has an answer here : Android: ActivityCompat.requestPermissions requires activity and not context :/ (1 answer) Closed 4 years ago . As per the new Android doc, In order to collect certain data, I need to request for permission. So I am doing this : @Override public void onCreate() { super.onCreate(); ... ... if (PermissionUtility.isPermitted(applicationContext, android.Manifest.permission.READ_SMS)) { userNumber = getUserPhoneNumber(); } else { ActivityCompat

Request Permission from Application class [duplicate]

ε祈祈猫儿з 提交于 2021-02-16 16:08:37
问题 This question already has an answer here : Android: ActivityCompat.requestPermissions requires activity and not context :/ (1 answer) Closed 4 years ago . As per the new Android doc, In order to collect certain data, I need to request for permission. So I am doing this : @Override public void onCreate() { super.onCreate(); ... ... if (PermissionUtility.isPermitted(applicationContext, android.Manifest.permission.READ_SMS)) { userNumber = getUserPhoneNumber(); } else { ActivityCompat

Request Permission from Application class [duplicate]

夙愿已清 提交于 2021-02-16 16:08:27
问题 This question already has an answer here : Android: ActivityCompat.requestPermissions requires activity and not context :/ (1 answer) Closed 4 years ago . As per the new Android doc, In order to collect certain data, I need to request for permission. So I am doing this : @Override public void onCreate() { super.onCreate(); ... ... if (PermissionUtility.isPermitted(applicationContext, android.Manifest.permission.READ_SMS)) { userNumber = getUserPhoneNumber(); } else { ActivityCompat

android - Alarm stops firing after some time

非 Y 不嫁゛ 提交于 2021-02-11 14:24:35
问题 I have an alarm that fires every hour and executes code in specific conditions It works smoothly, but when I leave my app unopened (the alarm initialization is on app startup) it stops after some time, these are the logs: 8/2/2020 6:27 AM Initializing Alarm, next alarm will fire at 8/2/2020 3:27 AM 8/2/2020 6:27 AM Application starting. 8/2/2020 6:28 AM Application stopped. 8/2/2020 6:28 AM Reports alarm received. 8/2/2020 7:28 AM Reports alarm received. 8/2/2020 8:28 AM Reports alarm

My App is not compatible on WiFi only devices

三世轮回 提交于 2021-02-11 14:21:56
问题 I developed an android app which shows the caller's Telecom Location on Incoming Call. I uploaded it on Google Play, but this app does not appear on WiFi only devices, it says your device is not compatible . My Manifest permission details are below. <uses-permission android:name="android.permission.READ_CALL_LOG"/> <uses-permission android:name="android.permission.READ_CONTACTS"/> <uses-permission android:name="android.permission.WRITE_CONTACTS"/> <uses-permission android:name="android

Why HMS PushKit needs android.permission.REQUEST_INSTALL_PACKAGES

戏子无情 提交于 2021-02-11 12:33:50
问题 Recently I've added HMS PushKit SDK with this gradle code: implementation "com.huawei.hms:push:5.0.4.302" After That I've noticed that my application added to the list of apps with access to install apps from unknown source (special permission). I checked the AndroidManifest.xml file of one of this library's dependency ( com.huawei.hms.base.availableupdate ) and saw that it has this special permission: <!-- If it is Android 8.0, the targetSdkVersion of the application compilation

Android Manifest File: App Supports Tablets, but is marked “not compatible” in market?

走远了吗. 提交于 2021-02-09 07:35:19
问题 I've been reading several other things on the forum for handling the Manifest File. Though I've found answers; it still doesn't address my particular issue. My application is designed for any phone or tablet, but Google's Play Store says "Not Compatible." I'm attempting to make the application available to phones and tablets (cellular or just wifi). Any assistance would be terrific, thank you in advance. I'm clearly missing something in this manifest file. These are the permissions requesting

Android Manifest File: App Supports Tablets, but is marked “not compatible” in market?

时间秒杀一切 提交于 2021-02-09 07:35:11
问题 I've been reading several other things on the forum for handling the Manifest File. Though I've found answers; it still doesn't address my particular issue. My application is designed for any phone or tablet, but Google's Play Store says "Not Compatible." I'm attempting to make the application available to phones and tablets (cellular or just wifi). Any assistance would be terrific, thank you in advance. I'm clearly missing something in this manifest file. These are the permissions requesting

Android Manifest File: App Supports Tablets, but is marked “not compatible” in market?

十年热恋 提交于 2021-02-09 07:32:49
问题 I've been reading several other things on the forum for handling the Manifest File. Though I've found answers; it still doesn't address my particular issue. My application is designed for any phone or tablet, but Google's Play Store says "Not Compatible." I'm attempting to make the application available to phones and tablets (cellular or just wifi). Any assistance would be terrific, thank you in advance. I'm clearly missing something in this manifest file. These are the permissions requesting