android 带参数广播示例

am broadcast -a com.nd.android.pandahome.manage_theme2 --es  path \"{0}\" --ei type 3

 

 

adb shell am broadcast 後面的參數有

[-a ]
[-d ]
[-t ]
[-c [-c ] ...]
[-e|--es ...]
[--ez ...]
[-e|--ei ...]
[-n ]
[-f ] []

例如: adb shell am broadcast -a com.gill.test.broadcast --es TestString "this is test string" --ez TestBoolean true --ei TestInt 100

 

转载于:https://www.cnblogs.com/cappuccino/archive/2011/10/14/2212470.html

你可能感兴趣的:(android 带参数广播示例)