I’m trying to send a broadcast command with `Proce...
# android
g
I’m trying to send a broadcast command with
ProcessBuilder
. It “works”, but the output is different if I run the same command via terminal:
Copy code
~ adb shell am broadcast -p com.sample -a sample.action -e "extra" "bla bla"
produces (correctly):
Copy code
Broadcasting: Intent { act=sample.action flg=0x400000 pkg=com.sample (has extras) }
Broadcast completed: result=0
but the same command via
ProcessBuilder
produces:
Copy code
Broadcasting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x400000 pkg= -p }
Broadcast completed: result=0
any idea why? 🤔
😶 6
d
For those flagging this "not kotlin" is there a place to ask Android questions in slack?
🚫 2
p
I mean you can ask here, take the "no kotlin" risk, a good Samaritan might pickup the question. Normally, I start in stackoverflow
😅 1
Try looking for some related tag there
c
There are also a few android specific slacks knocking about - Android United for example (not linking because I don't know the policies)
🙏 1
d
@Pablichjenkov I started with SO: https://stackoverflow.com/questions/74711165/scrollview-exceeding-bounds-of-linearlayout, just waiting on good answers.
👍 1
g
Android united link even in this channel description
d
Yeah, already applied.
I just googled for it.
g
you 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
g
Thanks guys 🙌 and sorry for the off topic, wasn’t my intention to go against the rules. One gets used to the very helpful answers that are given in this slack community. SO sometimes takes to long or never gets any answer at all. Before asking I’ve searched and googled but with no luck. Will open a SO question.
g
@Guilherme Delgado No problem at all, my comment was to PablichJenkov, that it’s not nice to knowingly write off-topic questions
👍 1
🤷‍♂️ 1
196 Views