Greetings, all.
How do I launch an app and pass it a file name? For example, I would like to pass file "1.txt" to Kingston Office so that the user can edit it.
This code launches Kingston Office:
How do I modify the intent to add the file "1.txt"?
I am truly a novice when it comes to Intents. Any and all help will be welcomed.
Thank you.
How do I launch an app and pass it a file name? For example, I would like to pass file "1.txt" to Kingston Office so that the user can edit it.
This code launches Kingston Office:
B4X:
Try
Dim In As Intent
Dim app As Object
app="cn.wps.moffice_eng"
Dim pm As PackageManager
In = pm.GetApplicationIntent(app)
StartActivity(In)
Catch
ToastMessageShow("error starting application.", True)
Log(LastException)
End Try
How do I modify the intent to add the file "1.txt"?
I am truly a novice when it comes to Intents. Any and all help will be welcomed.
Thank you.