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. Android service pass C++ object from Activity
Forum Update on Monday, May 27th 2025

Android service pass C++ object from Activity

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 514 Views
  • 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.
  • M Offline
    M Offline
    MartinD
    wrote on 21 Dec 2016, 18:31 last edited by
    #1

    How can I start Android service and pass C++ object to the service from activity?

    R 1 Reply Last reply 22 Dec 2016, 07:51
    0
    • M MartinD
      21 Dec 2016, 18:31

      How can I start Android service and pass C++ object to the service from activity?

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 22 Dec 2016, 07:51 last edited by
      #2

      @MartinD
      since the Activity and the Service are different processes and thus do not share the same memory space a pointer wouldn't help you.
      You need to use any IPC technique or if you are more familiar with it use Android Intents to communicate your data.

      --- 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

      1 Reply Last reply
      1

      1/2

      21 Dec 2016, 18:31

      • Login

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