A anglia Member Licensed User Longtime User Apr 1, 2019 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2019 #2 Something like: Code: Copy 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 Upvote 0
Something like: Code: Copy 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
A anglia Member Licensed User Longtime User Apr 2, 2019 #3 Erel said: Something like: Code: Copy 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 Click to expand... Thanks very much Erel. Just what I wanted! Upvote 0
Erel said: Something like: Code: Copy 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 Click to expand... Thanks very much Erel. Just what I wanted!