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. Program architecture with Android service

Program architecture with Android service

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

    Hello,

    I'm working on a media player using Qt/QML, QtAV, TagLib and MediaInfo. The target platforms are Windows, desktop Linux and Android. After some progress I now got to the point when I would like to implement proper Android support.

    The first thing that needs to be done is service support. There are 2 main reasons why I want to do that. The first is that audio playback stutters if my player is not the foreground application. I hope using a service I could improve this. The other thing is that the whole player (including GUI) doesn't need to be in memory when it is a background app and the playback service should be resistant to system, so it won't get killed so easily.

    Now the question is how this should be implemented. I read the guide here.

    Now I have following questions:

    1. Should I implement a separate playback service or should I create service from the whole application? When in background, the application basically just waits for track end and then starts next track from playlist. So there is not a lot of work done anyway.

    2. How do I ensure that the application still runs on other platforms? If I decide to separate the playback service, how would it work on Windows for example?

    What would you suggest? I would like to get an advices from more experienced people before I start doing something completely wrong.

    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