I have an android application in QT. I would like to call android settings from a button.
I used this code in Java :
public void usb(View v){
Intent intent = new Intent();
intent.setClassName("com.android.settings", "com.android.settings.DevelopmentSettings");
startActivity(intent);
}
Is there a way to call android settings using QT C++?
QAndroidJniObject makes it possible to create JNI objects from Qt C++ code.
For example: to get the activity:
For example: to create a new Intent:
You can then step by step translate execute your java code from C++....
To answer your specific question, just copy/paste this code:
...and then vote up! ;-)