发送意图使用Console包意图、Console

2023-09-06 08:30:29 作者:偷你一个亲亲

我开发一个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.

推荐答案

按照来源$ C ​​$ C 没有接受捆绑的输入数据的方式键入

 
精彩推荐
图片推荐