I am writing an native application in C++ under android, and I need to broadcast some intents. Is this possible?
If you are going to point me to JNI, please give me
There is a am
command that you can run that will send Intents to Activities or Services.
const char *cmd = "am startservice -a %s"
" --ei ars_flag 2 --ei invitationType %d"
" --ei mode 1 --es ars_gadget_uuid \"%s\""
" --ei ars_conn_handle %d"
" --es ars_user_uuid \"%s\" --es ars_username \"%s\"";
sprintf (cmdbuffer, cmd, ...);
system (cmdbuffer);