Allow Android Intents to be sent to the application.

Review Request #108165 - Created Jan. 4, 2013 and submitted

Information
Micke Prag
android-qt
alpha4
Reviewers
necessitas
This patch makes it possible to call an Android/Qt application using Intents. The data (url) will be forwarded to the QApplication as a QFileOpenEvent
Tested on Cube U30GT

Issues

  • 5
  • 0
  • 0
  • 5
Description From Last Updated
This change must go also to src/android/jar_4/src/org/kde/necessitas/industrius/QtNative.java file BogDan Vatra BogDan Vatra
This is not thread safe, please post the message instead. Check: http://doc-snapshot.qt-project.org/4.8/qcoreapplication.html#postEvent BogDan Vatra BogDan Vatra
Change this line to QCoreApplication::postEvent(QApplication::instance(), new QFileOpenEvent(qurl)); BogDan Vatra BogDan Vatra
Sorry, I just seen another one. Please change the following three lines to: const jchar * jstr = env->GetStringChars(url, 0); ... BogDan Vatra BogDan Vatra
postEvent is static http://doc-snapshot.qt-project.org/4.8/qcoreapplication.html#postEvent Please use QCoreApplication::postEvent instead of qApp->postEvent BogDan Vatra BogDan Vatra
BogDan Vatra
Micke Prag
BogDan Vatra
BogDan Vatra
BogDan Vatra
BogDan Vatra
BogDan Vatra
BogDan Vatra
Micke Prag
Review request changed

Status: Closed (submitted)

Loading...