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?
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
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