doc, xls and other files. How open file for edit and save on Android

  

Firemonkey 10.4

I have files at app internal memmory.
i Open it like this

LFile := TJFile.JavaClass.init(StringToJString(AFileName));
Intent := TJIntent.JavaClass.init(TJIntent.JavaClass.ACTION_VIEW); Intent.setDataAndType(TAndroidHelper.JFileToJURI(LFile), ExtToMime); Intent.setFlags(TJIntent.JavaClass.FLAG_GRANT_READ_URI_PERMISSION); Intent.addFlags(TJIntent.JavaClass.FLAG_GRANT_WRITE_URI_PERMISSION); TAndroidHelper.Activity.startActivity(Intent);
I can open and save (overwrite) simple txt file by simple text editor on Android, but can not do it for doc, docx.
I have tried official office and wps.
But I am always offered to save to the general memory of the phone, and never offered to re-save the file to its original location.
What I want to get:

the user opens the doc file for editing
he makes changes and saves
the user returns to my application

p.s. Sorry. some wrong with editor and code formating.

Comments are closed.