Qt Notification example with Java file and importing android classes
-
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 -
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.
-
What are you trying to achieve ?
-
@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:- use this piece of code: "extends org.qtproject.qt5.android.bindings.QtActivity" according to Bogdan Vatra's description
- 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.
-
Why not Android Studio ?