[Interest] [ Android ] How make Qt widget app open file using android.intent.action.VIEW ?

Eddie Sutton edsutton at gmail.com
Tue Apr 7 01:06:16 CEST 2015


My Qt 5.4.2 widget app handles opening of file with *.TSL on Windows from the File Explorer or email file attachments.

How do I do same on Android?  

How do I pass the file name using Android intent action view so that the Qt app can open and view?

Examples are much appreciated.

Thanks in advance,

-Ed





            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="file"/>
                <data android:mimeType="*/*"/>
                <data android:pathPattern=".*\\.TSL"/>
                <data android:host="*"/>
            </intent-filter>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150406/093f8758/attachment.html>


More information about the Interest mailing list