c++ - How do I start an android activity from a .cpp script? -


say using c , c++ , want execute script made in c within terminal emulator in android opens activity, gui. possible? , how do it?

i wouldn't care using assembly, tablet's processor armv7. if answer somewhere in there.

you start android activity same way in java, constructing appropriate intent instance , calling context.startactivity(). main difference need thunk java via jni in order c or c++.

look functions getmethodid , callvoidmethod within jnienv class—using those, can call java function c++ code. need small amount of java glue code want.


Popular posts from this blog

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -