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. Qt Android and MediaBrowser Service
Qt 6.11 is out! See what's new in the release blog

Qt Android and MediaBrowser Service

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 661 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.
  • E Offline
    E Offline
    eighttails
    wrote on last edited by
    #1

    Hi,everyone
    I'm making a music player for android with Qt 5.7.
    It needs to play in background and should not killed automatically.
    According to this blog, I have to make Service that inherits QtService and I did that.
    https://www.kdab.com/qt-android-create-android-service-using-qt/
    Currently it's working.

    Next, I want to make it controllable from BT remote and Android wear watch.
    According to this tutorial, I have to make Service that inherits MediaBrowserServiceCompat to do that.
    https://developer.android.com/guide/topics/media-apps/audio-app/building-a-mediabrowserservice.html?hl=ar

    In Java language we cannot create class with multiple inheritance.
    How should I implement service in this case?

    My project is here.(Unfortunately it is Japanese)
    https://github.com/eighttails/XMDX

    Is there any good practice?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vlada
      wrote on last edited by
      #2

      I've just run into the same problem. Have you found any solution for it?

      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