发送意图使用Console包 [英] Sending intent with bundle using console
问题描述
我开发一个Android应用程序侦听包含了一些数据捆绑特定意图。我想利用亚行意图发送到我的应用程序。我曾尝试用:
I'm developing an Android app listening for specific intent containing a bundle with some data. I would like to send an intent to my app using adb. I have tried with:
adb shell am startservice -a com.INTENT_NAME -e myBundleName myBundleData com.pkg/com.pkg.cls
但我的应用程序认可它作为字符串列表而不是一个包。有谁知道如何发送使用时应用程序软件包,意图是什么?不幸的文件说,只有大约发送字符串或号码清单,一无所知捆绑。
but my app recognised it as list of string not as a bundle. Does anyone know how to send intent with bundles using am application? Unfortunately documentation says only about sending lists of string or numbers, nothing about bundle.
推荐答案
按照<一个href=\"https://android.googlesource.com/platform/frameworks/base/+/master/cmds/am/src/com/android/commands/am/Am.java\"相对=nofollow>来源$ C $ C 是
没有接受捆绑的输入数据的方式
键入
这篇关于发送意图使用Console包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!