问题标签 [android-8.0-oreo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 带有 boot_completed 的运行时异常 Android O
我试图在我的 BOOT_COMPLETED 接收器中启动一个 IntentService,但在 Android O (API 26) 中我得到:
(消息在一行中,但这样更容易阅读)
我怎样才能以正确的方式做到这一点?
android-accessibility - Android O - 无障碍服务 - 指纹手势回调
我正在尝试使用来自 android O 的新指纹手势回调。
我已经在清单中声明了这些
我的无障碍服务 xml 如下所示:
..然后在可访问性服务 onServiceConnected 方法中,我尝试使用以下内容注册回调
无障碍服务注册良好,上面注册回调的代码调用正常,但我从未接到 onGestureDetectionAvailabilityChanged 和 onGestureDetected 的调用
围绕它的文档有些缺乏,所以我不确定我还需要什么才能使回调正常工作。
android - FileObserver 在后台监听,Android O
我FileObserver
在我的应用程序中,现在它在后台运行,如果注册了新文件 - 将其实例化上传到前台服务中的某个服务器。
在 Android O 中,我们应该使用 FirebaseJob Dispatcher 在后台做一些工作,但是我们如何应用它FileObserver
呢?有什么方法可以在后台分析数据吗?或者也许它从现在开始就无法使用FileObserver
?
android - 使用 Android O 的 XML 字体
Android O 使用新的 android-studio 3.0 版提供字体目录,但是当在字体目录中放置字体文件并运行项目时,它在字体目录中的字体文件中出现错误。错误:任务“:app:mergeDebugResources”执行失败。
/home/ttuser4/Downloads/fontPractice/app/src/main/res/font/Dancing_Script.ttf:错误:文件名必须以.xml结尾
android - Android O - android.intent.action.PROVIDER_CHANGED 受 BroadcastRecevier 限制影响?
在阅读新的 Android O 限制时,我注意到 Google 开发人员限制了清单中广播接收器的使用。他们使用术语隐式和显式广播接收器,但我不太清楚它们的确切含义。例如,我有一个应用程序使用android.intent.action.PROVIDER_CHANGED广播监听日历中的变化:
当应用程序以 Android O 为目标时,此接收器是否会受到新限制的影响?
谢谢你。
android - 检测到蓝牙设备的连接
根据当前文档,意图 ACL_CONNECTED 和 ACL_DISCONNECTED 不在例外列表中。我的应用程序使用这些意图在连接特定设备时启动前台服务。唯一的另一种方法是使用 ACTION_STATE_CHANGED 但它似乎有不同的目标。所以现在当特定的BT设备与android 8连接时似乎不可能启动服务。我错过了什么吗?
java - Intent 权限和 JobIntentService
我有一个应用程序 A 向应用程序 B 发送意图。应用程序 A 有一个文件提供程序并与 B 共享一个文件。它将授权添加到意图并在 B 上启动一个服务。B 有一个 IntentService 并处理意图。现在我想根据新的 Android O 策略更改 B 以使用 JobIntentService 。但是我不能从 A 调用 startService,所以我修改了我的代码以发送显式广播。我在剪辑数据中添加了 uri。但是,当我收到有关应用程序 B 的意图时,我遇到了安全异常。
应用程序 A:
应用 B:
堆:
编辑:我尝试在 JobInfo 上使用使用 setClipData 的 JobService。无论如何它根本不起作用。
android - Android 26 (O) Notification doesn't display Action Icon
With Android 26 (O) introducing Notification channels I have been investigating the Google supplied com.example.android.notificationchannels
This example works as expected until I attempted to add an Action
to the Secondary Notification defined within the example app.
My code resembles this :-
and buildAction() :-
The Action is displayed and works as desired, however there is no Icon displayed next to the Action Title.
What have I done wrong?
My build.gradle file is shown below:-
The Android Studio details are :-