Hi, to reach files in Android, I asked ChatGPT for help, and here is the code;
Private Sub btnDosyaAl_Click
Dim i As Intent
i.Initialize("android.intent.action.GET_CONTENT", "")
i.SetType("*/*")
StartActivityForResult(i, 1)
End Sub
Sub Activity_Result (ResultCode As Int, Intent As Intent)
If ResultCode = -1 Then
Dim uri As String = Intent.GetData
Log("Seçilen dosya: " & uri)
ToastMessageShow("Seçilen dosya: " & uri, False)
End If
End Sub
However "StartActivityForResult(i, 1)" line gives the error "undeclared variable".
Any idea or pointers will be appreciated, thanks.
Private Sub btnDosyaAl_Click
Dim i As Intent
i.Initialize("android.intent.action.GET_CONTENT", "")
i.SetType("*/*")
StartActivityForResult(i, 1)
End Sub
Sub Activity_Result (ResultCode As Int, Intent As Intent)
If ResultCode = -1 Then
Dim uri As String = Intent.GetData
Log("Seçilen dosya: " & uri)
ToastMessageShow("Seçilen dosya: " & uri, False)
End If
End Sub
However "StartActivityForResult(i, 1)" line gives the error "undeclared variable".
Any idea or pointers will be appreciated, thanks.