Solved How to run qt application from another qt application on android
-
Hi All,
I want to run qt application from another qt application on android device.
in Linex devices it is possible to run qt application from another qt application by using QProcess object. But It won't work in android device. Why?Any Solutions?
Thanks in Advance,
Bahubali P S -
@Bahubali_p_s
In Android the clean way is calledActivities
You can start an app with anIntent
(when the apps Activity is registered to handle this Intent)But this is rather native Android development and there a tons of material on the web.
You can use QtAndroid::startActivity() for example. -
Thanks for your reply.
i am using Intent in java class:Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(ComponentName.unflattenFromString(PACKAGE_PATH));
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);how to get application's PACKAGE_PATH ?
is that code is right?
please suggest me.Thanks,
Bahubali P S -
@Bahubali_p_s
see here -
This post is deleted! -
@raven-worx: Thanks
i reffered following link to solve this issue:
http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intentThanks all.
Bahubali P S