Hallo
Ich öffne mit folgenden Code eine PDF.
Sub OpenPDF(FileName As String)
Dim i As Intent
'Requires a reference to the Phone library
i.Initialize(i.ACTION_VIEW, FileName)
i.SetType("application/pdf")
i.WrapAsIntentChooser("Choose PDF Viewer")
StartActivity(i)
End Sub
nun habe ich den Code wir folgt angepasst.
Dim i As Intent
'Requires a reference to the Phone library
i.Initialize(i.ACTION_VIEW, "A.JPG")
i.SetType("image/*")
i.WrapAsIntentChooser("Choose JPG Viewer")
StartActivity(i)
Beim Aufruf der Datei mit dem Programm "Galerie" (beim Samsung III)
erhalte ich die Meldung "Foto kann nicht geladen werden".
Die Datei ist vorhanden. Ein Manuelles Starten von "Galerie" zeigt das Foto an.
Ich hoffe wir kann einer eine Antwort geben.
Tudorf