Post Reply 
Auto-rotation skins on Free42 v3.0.7
11-10-2021, 07:39 PM (This post was last modified: 11-10-2021 11:55 PM by johanw.)
Post: #24
RE: Auto-rotation skins on Free42 v3.0.7
(11-09-2021 01:53 PM)Thomas Okken Wrote:  Back when Android wasn't so restrictive, I used to use /sdcard/Free42 for that kind of thing, but I don't know if the current security scheme would allow apps to obtain that kind of access, i.e. full access to a specific directory outside of the standard directories.
Yes that is possible with SAF. Your app has to ask permission to access that folder (you get a nice system file picker to select a folder) and can access files there through SAF. Unfortunately that means that the File api isn't usable anymore and you need a lot of complicated boilerplate code to just copy something there. Stackoverflow should have some examples, and other Android apps like Newpipe or Signal projects use it too.

The only advantage of this method is that it also works for cloud destinations like Google drive. But IMO SAF is a horrible example of over-engineering.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Auto-rotation skins on Free42 v3.0.7 - johanw - 11-10-2021 07:39 PM



User(s) browsing this thread: 2 Guest(s)