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. Java constructor question
Forum Updated to NodeBB v4.3 + New Features

Java constructor question

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 752 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.
  • M Offline
    M Offline
    MathiasH
    wrote on last edited by
    #1

    Hi all,

    I'm not used to Java so I have got a question.
    There is the android example to NotificationClient : "link":http://qt-project.org/doc/qt-5/qtandroidextras-notification-android-sources-src-org-qtproject-example-notification-notificationclient-java.html

    If i would set an "Log.i("Qt", "test");" into to puplic NotificationClient()- function and call the
    notify-function in myQtProject the Log function should work. or? do i missunderstand it?

    Because my Qt-App only comes only right before that line: " m_notificationManager = (NotificationManager)m_instance.getSystemService(Context.NOTIFICATION_SERVICE);"
    there it crashes but i really do not know why...

    I think there is a problem with m_instance. could that be?

    Thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MathiasH
      wrote on last edited by
      #2

      No one has got an idea for me? :o

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Deepak986
        wrote on last edited by
        #3
        This post is deleted!
        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