Guilherme Delgado
12/08/2022, 1:45 AMProcessBuilder
. 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? 🤔Don Branson
12/08/2022, 2:33 AMPablichjenkov
12/08/2022, 2:59 AMPablichjenkov
12/08/2022, 2:59 AMczuckie
12/08/2022, 2:10 PMDon Branson
12/08/2022, 3:12 PMgildor
12/08/2022, 4:38 PMDon Branson
12/08/2022, 4:39 PMDon Branson
12/08/2022, 4:41 PMgildor
12/08/2022, 4:41 PMyou can ask here, take the "no kotlin" risk
It's intentional off-topic and against this Slack rules, please take a look at Guidelines: https://kotlinlang.org/community/slackccugl.html
Guilherme Delgado
12/08/2022, 5:19 PMgildor
12/09/2022, 7:27 AM