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 Notification example with Java file and importing android classes

Qt Notification example with Java file and importing android classes

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qt notificationjavaqtandroidextrasqandroidjniobjeandroid
7 Posts 2 Posters 3.1k 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.
  • W Offline
    W Offline
    werter
    wrote on 4 May 2016, 19:00 last edited by
    #1

    Hi,
    There is Qt example about notification on http://doc.qt.io/qt-5/qtandroidextras-notification-example.html with importing android classes in java file. I do not understand java/android part well.

    When I want to develop my own application how shall I know which class to import? How to find it out? Shall I also use this piece of code: "extends org.qtproject.qt5.android.bindings.QtActivity"? Will Android Studio be good for checking my java file?

    I cannot not find the answers on these questions.

    Kind Regards,
    werter

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 May 2016, 21:51 last edited by
      #2

      Hi,

      Unless you need to use an Android API that's not available through Qt then you don't have to use any Java. On the other hand if you do need such an API like in the notification example, then it's up to you to get the information from the Android documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      W 1 Reply Last reply 8 May 2016, 17:08
      0
      • S SGaist
        4 May 2016, 21:51

        Hi,

        Unless you need to use an Android API that's not available through Qt then you don't have to use any Java. On the other hand if you do need such an API like in the notification example, then it's up to you to get the information from the Android documentation.

        W Offline
        W Offline
        werter
        wrote on 8 May 2016, 17:08 last edited by
        #3

        @SGaist
        Do you know on what shall I look at? At least where to start at? I am not familiar with java/android I must say.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 8 May 2016, 21:26 last edited by
          #4

          What are you trying to achieve ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          W 1 Reply Last reply 10 May 2016, 18:24
          0
          • S SGaist
            8 May 2016, 21:26

            What are you trying to achieve ?

            W Offline
            W Offline
            werter
            wrote on 10 May 2016, 18:24 last edited by
            #5

            @SGaist
            I would like to save data from QString(S) or QStringList: name, surname, phone number as contact on my Android smartphone. I watch on these 2 sources: http://developer.android.com/guide/topics/providers/contacts-provider.html (http://developer.android.com/reference/android/provider/ContactsContract.Data.html) and http://www.kdab.com/qt-on-android-episode-1/ (and seven next episodes). It looks I need to:

            1. use this piece of code: "extends org.qtproject.qt5.android.bindings.QtActivity" according to Bogdan Vatra's description
            2. use Java tool - I am testing this one http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2 but I do not know if it is helpful for this job

            I am trying and appreciate every help.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 10 May 2016, 20:03 last edited by
              #6

              Why not Android Studio ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              W 1 Reply Last reply 11 May 2016, 19:54
              0
              • S SGaist
                10 May 2016, 20:03

                Why not Android Studio ?

                W Offline
                W Offline
                werter
                wrote on 11 May 2016, 19:54 last edited by
                #7

                @SGaist
                Alright. I have installed Android Studio and will be testing. And something more?

                1 Reply Last reply
                0

                3/7

                8 May 2016, 17:08

                • Login

                • Login or register to search.
                3 out of 7
                • First post
                  3/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved