我正在使用 C++ 和 Qt Necessitas SDK 开发一个 Android 应用程序。我的应用程序应该加载/保存文件,并且我想使用 Android 操作来处理它(这样我就可以针对 Google Drive 以及 Dropbox 等...)
问题是......我如何从 C++ 提出意图(以及我应该提出哪个意图来共享/导入我的文件)?
基本原理:如何在 Android 上使用 Qt Necessitas 加载和保存文件(自定义 mimetype 或 pdf)?
我正在使用 C++ 和 Qt Necessitas SDK 开发一个 Android 应用程序。我的应用程序应该加载/保存文件,并且我想使用 Android 操作来处理它(这样我就可以针对 Google Drive 以及 Dropbox 等...)
问题是......我如何从 C++ 提出意图(以及我应该提出哪个意图来共享/导入我的文件)?
基本原理:如何在 Android 上使用 Qt Necessitas 加载和保存文件(自定义 mimetype 或 pdf)?
I'm a complete newbie to java and I know nothing of JNI, but apparently this link will explain how to [use the JNI to] use intents in your QT for Android applications: http://community.kde.org/Necessitas/JNI
It looks pretty straightforward, but I'm afraid I don't yet understand what I'm reading enough to give you a better answer to your question.
Sources:
Another option for a some things (opening websites, making phone calls, possibly opening local PDFs and images) would apparently be QDesktopServices::OpenURL() - although that seems to give open-only access (ie, opening the resource but not pulling any data back from it).
I'm interested in this so that I can use the barcode scanner app "ZXING", which has an intent-as-url at http://zxing.appspot.com/scan - I don't know what other little secrets are out there...
HTH until someone can give you a better answer
(2 links disabled due to insufficient reputation)