Here what i have three application:
- UI application (Java)
- Native application A (Cpp)
- Native application B (Cpp)
Now UI application call Native application A start. So is there any way to call B start from A? Because B is external part of A, it's needed to be individual process.
Update: Call app like this:
std::system("am start -n com.package.name/.activity")
it's work in ADB, but not work in Native application.
New idea: Because B application just need to do a simple file transfer job(OTA file download). So I think i need to make B application become a service. And make it start when system boot. Then A application not invoke B but broadcast an intent to B.Like this:
std::system("am broadcast -a my_start_action -n com.package.name/.activity")
But still not work.