gpt4 book ai didi

android - android 6.0下 Activity 识别运行权限

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:36:28 25 4
gpt4 key购买 nike

我正在尝试实现 Activity 识别,以便它支持 api 23。我从这里遵循了运行权限指南:

https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous

而且我找不到 Activity 识别是属于危险权限还是正常权限?

即使在谷歌的 Activity 识别样本中,他们也不以 api 23 为目标:https://github.com/googlesamples/android-play-location/tree/master/ActivityRecognition

会不会是android 6.0不支持 Activity 识别?

最佳答案

在以下链接中,您可以找到有关 android 23 中权限的更多详细信息

http://inthecheesefactory.com/blog/things-you-need-to-know-about-android-m-permission-developer-edition/en

自动授予以下权限

android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_NOTIFICATION_POLICY
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_WIMAX_STATE
android.permission.BLUETOOTH
android.permission.BLUETOOTH_ADMIN
android.permission.BROADCAST_STICKY
android.permission.CHANGE_NETWORK_STATE
android.permission.CHANGE_WIFI_MULTICAST_STATE
android.permission.CHANGE_WIFI_STATE
android.permission.CHANGE_WIMAX_STATE
android.permission.DISABLE_KEYGUARD
android.permission.EXPAND_STATUS_BAR
android.permission.FLASHLIGHT
android.permission.GET_ACCOUNTS
android.permission.GET_PACKAGE_SIZE
android.permission.INTERNET
android.permission.KILL_BACKGROUND_PROCESSES
android.permission.MODIFY_AUDIO_SETTINGS
android.permission.NFC
android.permission.READ_SYNC_SETTINGS
android.permission.READ_SYNC_STATS
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.REORDER_TASKS
android.permission.REQUEST_INSTALL_PACKAGES
android.permission.SET_TIME_ZONE
android.permission.SET_WALLPAPER
android.permission.SET_WALLPAPER_HINTS
android.permission.SUBSCRIBED_FEEDS_READ
android.permission.TRANSMIT_IR
android.permission.USE_FINGERPRINT
android.permission.VIBRATE
android.permission.WAKE_LOCK
android.permission.WRITE_SYNC_SETTINGS
com.android.alarm.permission.SET_ALARM
com.android.launcher.permission.INSTALL_SHORTCUT
com.android.launcher.permission.UNINSTALL_SHORTCUT

关于android - android 6.0下 Activity 识别运行权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33149700/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com