-
Notifications
You must be signed in to change notification settings - Fork 86
open file
Peter Lewis edited this page Mar 2, 2023
·
1 revision
Starts an intent to open the file on Android.
Parameter | Description |
---|---|
filepath | Path of the file to open |
filetype | Type of the file, as a string, to be passed to Intent.setDataAndType |
orientation | (Optional) Orientation such as GUI_PORTRAIT or GUI_LANDSCAPE |
To use this or other modules that require intents and URIs, you must add the following files to your app directory:
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="@[email protected]"
android:exported="false"
android:grantUriPermissions="true">
<!-- resource file to create -->
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths">
</meta-data>
</provider>
<?xml version="1.0" encoding="utf-8"?>
<paths>
<root-path name="root" path="." />
</paths>
(open-file (string-append (system-directory) (system-pathseparator) "test.mp4") "video/*")
(open-file (string-append (system-directory) (system-pathseparator) "test.pdf") "application/pdf")
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip