Guilherme Delgado
12/07/2022, 11:16 PMProcessBuilder
. It “works”, but the output is different if I run the same command via terminal:
~ adb shell am broadcast -p com.sample -a sample.action -e "extra" "bla bla"
produces (correctly):
Broadcasting: Intent { act=sample.action flg=0x400000 pkg=com.sample (has extras) }
Broadcast completed: result=0
but the same command via ProcessBuilder
produces:
Broadcasting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x400000 pkg= -p }
Broadcast completed: result=0
any idea why? 🤔Kirill Grouchnikov
12/07/2022, 11:59 PMGuilherme Delgado
12/08/2022, 1:44 AMjim
12/08/2022, 3:48 PMGuilherme Delgado
12/12/2022, 4:22 PM