Hi all,
I have a file in DirInternal and would like to mail it on user command.
Does this thread stiil apply at B4xPages time?
Do I simply need to move the FileProvider initialization from Starter to B4xMainPage? Or should I use Main for this?
Addition to manifest:
Anyway, once the above is sorted out, will any common Android device be able to start an email intent? Or are there cases where this could fail (e.g. non Mail program on device)?
If the latter, what could be a B plan?
Thank you
I have a file in DirInternal and would like to mail it on user command.
Does this thread stiil apply at B4xPages time?
Do I simply need to move the FileProvider initialization from Starter to B4xMainPage? Or should I use Main for this?
Addition to manifest:
B4X:
AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="19" />
)
AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
Anyway, once the above is sorted out, will any common Android device be able to start an email intent? Or are there cases where this could fail (e.g. non Mail program on device)?
If the latter, what could be a B plan?
Thank you