Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to run qt application from another qt application on android
Forum Updated to NodeBB v4.3 + New Features

How to run qt application from another qt application on android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bahubali_p_s
    wrote on last edited by
    #1

    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

    raven-worxR 1 Reply Last reply
    0
    • B Bahubali_p_s

      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

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Bahubali_p_s
      In Android the clean way is called Activities
      You can start an app with an Intent (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.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      B 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @Bahubali_p_s
        In Android the clean way is called Activities
        You can start an app with an Intent (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.

        B Offline
        B Offline
        Bahubali_p_s
        wrote on last edited by
        #3

        @raven-worx

        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

        raven-worxR 1 Reply Last reply
        0
        • B Bahubali_p_s

          @raven-worx

          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

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Bahubali_p_s
          see here

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          B 1 Reply Last reply
          0
          • raven-worxR raven-worx

            @Bahubali_p_s
            see here

            B Offline
            B Offline
            Bahubali_p_s
            wrote on last edited by
            #5
            This post is deleted!
            B 1 Reply Last reply
            0
            • B Bahubali_p_s

              This post is deleted!

              B Offline
              B Offline
              Bahubali_p_s
              wrote on last edited by
              #6

              @raven-worx: Thanks

              i reffered following link to solve this issue:
              http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent

              Thanks all.
              Bahubali P S

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved