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 set notification bar in android phone from qt
Qt 6.11 is out! See what's new in the release blog

How to set notification bar in android phone from qt

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

    How to set notification bar in android phone from qt

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kornava
      wrote on last edited by
      #2

      You can do it in Java, then call it from the Qt side,
      The JNI (Java native interface) will handle this inter-languages call.

      You write a Java method that will contain the notification necessarie instructions (without touching the layout), put it inside a a java file in your src path (don't forget to add the package name in the header of the java file)

      those links may help (don't make any buttons or layout items, all the gui must be in Qt side...):
      http://developer.android.com/guide/topics/ui/notifiers/notifications.html
      https://www.youtube.com/watch?v=GQPyXkbikXw

      Then you can call this Java method from the Qt side.
      How to make it? follow this tutorial:
      http://www.kdab.com/qt-android-episode-5/

      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