arkceajin
Lurker
I tried to call native from another native app like this:
Native A ⇒ click button to trigger below function to start ⇒ Native B
this command can work in ADB, but not work in native application.
So i create Native B as Service, start B service first.
Then let A broadcast a action, let B service do certain job like this:
But still does not worked.[/code]
Native A ⇒ click button to trigger below function to start ⇒ Native B
Code:
std::system("am start -n com.package.name/.activity")
So i create Native B as Service, start B service first.
Then let A broadcast a action, let B service do certain job like this:
Code:
std::system("am broadcast -a my_start_action -n com.package.name/.activity")
Last edited: