android - 如何使用 NoteIntents?

标签 android android-intent android-implicit-intent google-voice-actions

我正在尝试访问 NoteIntents.CREATE_NOTE。但是 Android Studio 既不识别它也不让我导入 com.google.android.gsm.actions.NoteIntents;

我正在尝试创建一个用于创建注释的隐式 Intent 接收器。我一直在引用谷歌开发者文档。 Link to New Note Intent Section. 请帮忙

最佳答案

这是因为您的项目没有设置 google play 服务。可以关注this document这表明如何使用 google play 服务设置项目。

请在文档中做笔记:

Be sure you update this version number each time Google Play services is updated.

关于android - 如何使用 NoteIntents?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50145470/

相关文章:

java - Gson反序列化返回一个包含null的Object

android - 通过 Android Intent 共享位图

android - 为什么 Main Activity 有一个 intent 过滤器?

java - IntentBuilder(Context,ComponentName) 在 IntentBuilder 中具有私有(private)访问权限

android - FFmpegFrameRecorder videoBroadcasting audio comes faster than video frame in 3G 网络

android - 关于ListView代码

android - 如何在其 setSupportActionBar 时在操作栏中添加图标

android 方向 - Intent 问题(相机)

android - 启动 android.intent.action.VIEW 时出现 ActivityNotFoundException

android - Android 中的调用 Intent