Methods of storing app data

85 views
Skip to first unread message

Matt

unread,
Jun 3, 2019, 9:41:15 AM6/3/19
to DroidScript
Hi all,

I have a functional app that is currently on google play and being used.

I have had some feedback from the users of the app that when they install it, they need to allow the following permission.

“Allow {MyApp} to access photos, media and files on your device?”

The only place that I access any type of file is to read/write app data to a text file (encrypted login credentials and other information).

I want to avoid this message appearing as it can put users off.

Is there another way of storing app data that does not trigger any permissions?

** Note **
I have been playing around with the idea of storing the data in a database, but with how the app currently works, converting from instant access to the data, to a callback based method is causing headache inducing issues.
I can continue down this path if it is the only option, I just wanted to check if there is a another way.

Kind regards,
Matt


John

unread,
Jun 5, 2019, 9:21:57 PM6/5/19
to DroidScript
Look at app.GetPrivateFolder(name), try storing your file there.

Matt

unread,
Jun 6, 2019, 5:03:49 AM6/6/19
to DroidScript
You are an angel!

Been working on this for a few days now with dwindling hope, implemented your suggestion and it works no problem.

Thank you!
Reply all
Reply to author
Forward
0 new messages