Hi
I use this sub to read pdf files
I also like to start up an application that can show .png or .jpg files.
In my app I get a message: 'No Application found to complete this action'
Selecting the png or jpg. file in the explorer starts the image browser.
Question: why doesn´t it work in my app with the code above?
Henk
I use this sub to read pdf files
B4X:
'View Docs
ViewType = 12
Dim FileDialog1 As FileDialog
FileDialog1.FilePath = File.DirRootExternal
If FileDialog1.Show("Select file", "Ok", "Cancel", "", Null) = DialogResponse.POSITIVE Then
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "file://" & File.Combine(FileDialog1.FilePath , FileDialog1.ChosenName))
Dim Ext As String
Ext = FileDialog1.ChosenName.SubString(FileDialog1.ChosenName.IndexOf(".") + 1)
in.SetType("application/" & Ext)
in.WrapAsIntentChooser("Select application")
StartActivity(in)
End If
I also like to start up an application that can show .png or .jpg files.
In my app I get a message: 'No Application found to complete this action'
Selecting the png or jpg. file in the explorer starts the image browser.
Question: why doesn´t it work in my app with the code above?
Henk