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: QtService and NotificationListenerService

Android: QtService and NotificationListenerService

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 200 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
    Marc_Van_Daele
    wrote on last edited by Marc_Van_Daele
    #1

    Currently, QtService extends Service but I would like to subclass NotificationListenerService.

    What is the best approach? I see two possible approaches and I would appreciate input on which path is preferred.

    • Option 1: I started with the example on https://www.kdab.com/qt-android-create-android-service-using-qt/ and I modified the org.qtproject.qt5.android.bindings.QtService and let it inherit from NotificationListenerService instead of Service. I couldn't get this to work (yet) but I'm also not sure whether this is conceptually OK and whether I should also change the onBind implementation to call eg the NotificationListenerService.onBind etc
    • Option 2: create two services: one pure Java NotificationListenerService that sends messages (via a BroadcastReceiver I guess) to a QtService
    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