mimetype

  1. Alexander Stolte

    Android Code Snippet [B4X] Get mime type by extension

    If something is missing, I will gladly add the function. Log(GetMimeTypeByExtension("jpg")) Public Sub GetMimeTypeByExtension(Extension As String) As String Extension = Extension.Replace(".","").ToLowerCase Select Extension Case "jpg","png","gif","bmp","ico","svg","webp"...
  2. peacemaker

    Android Question Manifest's intent-filter for MimeType "text/*"

    HI, All I'd like to receive by the app files of some kinds: AddActivityText(Main, <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="image/*" /> <data android:mimeType="text/*" />...
  3. peacemaker

    Android Question {SOLVED} Get file's MimeType from received Intent ?

    (Intent) Intent { act=android.intent.action.SEND typ=image/* flg=0x1b088001 cmp=peacemaker.elchecks/.main clip={image/* U:content://0@media/external/images/media/12645} (has extras) } Such Intent's GetData is null. But Extras: Bundle[{more_actions_quick_connect=1, from-myfiles=true...
Top