Sub Activity_Resume
If IsRelevantIntent(Activity.GetStartingIntent) Then
Dim in As JavaObject = Activity.GetStartingIntent
Dim uri As String = in.RunMethod("getParcelableExtra", Array("android.intent.extra.STREAM"))
Log("Uri " & uri)
Try
Dim FileName As String
FileName = Uri_Class.GetFileInfoByIndex("_display_name", uri) 'Get the file name
Log("Name " & FileName)
Dim OriginPath As String
OriginPath = GetPathUri(False, uri) 'Get the file path
Log("OriginPath1 " & OriginPath)
Dim SafeFolder As String
SafeFolder = "SafeFolder"
Dim Destination As String = "file:///" & SafeFolder
Log("Destinarion " & Destination)
'OriginPath = OriginPath.SubString2(0, OriginPath.LastIndexOf("/"))
'Log("OriginPath1 " & OriginPath)
File.Copy(OriginPath, FileName, File.DirInternal, FileName)
Log("ok")
Catch
Log(LastException)
End Try
End If
End Sub