Sub Activity_Resume
Dim intent1 As Intent
intent1 = Activity.GetStartingIntent
If intent1 <> Null Then
Dim UriString As String = intent1.GetData
Dim Dir, FileName As String
If UriString.StartsWith("file://") Then
FileName = UriString.Substring("file://".Length)
Dir = ""
Else If UriString.StartsWith("content://") Then
FileName = UriString.Substring("content://".Length)
Dir = "ContentDir"
End If
Log(File.ReadString(Dir, FileName))
Dim List1 As List
List1 = File.ReadList(Dir, FileName)
Msgbox("List1.Size = " & List1.Size & CRLF & "The third item is: " & List1.Get(2), "")
End If
End Sub