- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我的应用中,我正在编写一个功能来将购物 list 分享到 Google Keep。为此,我使用 Intent.ACTION_SEND 操作并将包设置为 Google Keep 之一。
一切正常,但我想知道是否可以向 Intent 添加一个 EXTRA 参数,告诉 Google Keep 它必须显示为带有复选框的列表,就像在创建日历事件。现在,它显示为纯文本。
这是我的代码:
try {
Intent keepIntent = new Intent(Intent.ACTION_SEND);
keepIntent.setType("text/plain");
keepIntent.setPackage("com.google.android.keep");
keepIntent.putExtra(Intent.EXTRA_SUBJECT, "Shopping List " + recipe.getName());
keepIntent.putExtra(Intent.EXTRA_TEXT, "Flower\nyeast\nbutter\nalmonds");
startActivity(keepIntent);
} catch (Exception e) {
Dialogs.toastShort(this, "Google Keep is not installed on your device");
}
现在,我得到了这个结果:
我想得到的是这个结果——否则用户必须在操作栏中选择“显示复选框”:
感谢您的帮助。
最佳答案
很遗憾,这是不可能的。 Google 尚未发布供公众或第 3 方使用的 API。如果您检查 http 流量,您可以看到底层 API,但没有真正的方法来复制它。抱歉
关于android - Google Keep 在您的应用程序中列出备注,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31168947/
在使用 C# 编码时,我总是发现标签 remarks 对于提供有关类或方法的实现的注释或提供有关我正在实现的理论的信息非常有用。我现在正在使用 Java,但我找不到合适的 JavaDoc 标记。也许在
文档生成器Doxygen允许将注释标记为关注,注释,备注,待办事项或警告。 我应该遵循什么准则来将评论正确地分类为其中之一? 最佳答案 与未标记的其他部分相比,所有这些标记均用于突出显示文档中特别值得
下面是产品表: id | mid | wgh | remark| remkok | 1 3 1.5 r3ok 1 2 2 1.5
是否可以向 .gitattributes 文件添加评论或备注? 如果是,评论行到底是什么样子的? 最佳答案 #这是一条评论! 在 .gitattributes 中。 关于git - 向 .gitatt
这个问题在这里已经有了答案: What belongs in an educational tool to demonstrate the unwarranted assumptions peopl
#define DATA_VAR_FILENAME(PROJECT_ID) QUOTES(..\ ## PROJECT_ID ## _data_var.h) 或 #define DATA_VAR_F
我是一名优秀的程序员,十分优秀!