I am using "Intent" to open Image File in my application.I have four external application to open Image.My question is when I open File from Intent ,it should show list of external application...
B4X:
Sub ViewFiles(StrPath As String)
Dim Ext As String
Dim i As Intent 'Requires a reference to the Phone library
i.Initialize(i.ACTION_VIEW,StrPath.Trim)
Ext = StrFileName.SubString(StrFileName.Length-3)
Select Case Ext.ToUpperCase
Case "JPG"
i.SetType("image/*")
Case "PNG"
i.SetType("image/*")
Case "PDF"
i.SetType("application/pdf")
Case "XLS"
i.SetType("application/vnd.ms-excel")
Case "XLSX"
i.SetType("application/vnd.ms-excel")
Case "TXT"
i.SetType("text/plain")
Case "DOC"
i.SetType("application/msword")
Case "DOCX"
i.SetType("application/msword")
Case "PPT"
i.SetType("application/vnd.ms-powerpoint")
Case "PPTX"
i.SetType("application/vnd.ms-powerpoint")
End Select
StartActivity(i)
End Sub