Android Question Saving PDF file after viewing

anglia

Member
Licensed User
I've created a PDF file from data in a SQLite database and used an intent to allow the user to view the file.
I want to be able to offer the user the option of saving the file after he/she has viewed it.

After closing the PDF file (back button) I don't know where in my code I should I ask if the file is to be saved?

Any help please.
 

anglia

Member
Licensed User
Something like:
B4X:
StartActivity(pdfintent)
Wait For Activity_Resume
Msgbox2Async("Do you want to save file?", "Title", "Yes", "", "No", Null, False)
Wait For Msgbox_Result (Result As Int)
If Result = DialogResponse.POSITIVE Then
   'save
End If
Thanks very much Erel. Just what I wanted!
 
Top