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

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo