Opening attachment from mail
-
Hello!
I am working on android and am trying to open the attached file file of an e-mail:
@
QAndroidJniObject activity = QAndroidJniObject::callStaticObjectMethod("org/qtproject/qt5/android/QtNative", "activity", "()Landroid/app/Activity;");
QAndroidJniObject intent = activity.callObjectMethod("getIntent","()Landroid/content/Intent;");
QString pathToFile = intent.callObjectMethod("getDataString", "()Landroid/net/Uri;").toString();
@pathToFile looks like this: "content://com.android.email.attachmentprovider/1/32/RAW"
If I try to open this, I get the "File not found" error.Anybody knows how to open a mail attachment using Qt for android???
Cheers!!!