X Tutup
Skip to content

Add DocumentsProvider for Android.#1998

Merged
nesbox merged 1 commit intonesbox:mainfrom
sakisakira:main
Jul 30, 2022
Merged

Add DocumentsProvider for Android.#1998
nesbox merged 1 commit intonesbox:mainfrom
sakisakira:main

Conversation

@sakisakira
Copy link
Contributor

In Android 11 and later, file access from the other app got strict. So we cannot edit files under the home directory of TIC-80.
This PR will enable to edit source code file under the home directory of TIC-80 by any Android text editor with Storage Access Framework.
https://developer.android.com/guide/topics/providers/document-provider?hl=en
Screenshot_20220730-224015
Screenshot_20220730-224028

These screenshots are of the file open dialog of a text editor app (Jota+). I confirmed that I can edit hello.rb with the app and then the editing result is affected by pressing Ctrl-R on TIC-80.
I expect this PR might solve some part of #1540

Copy link
Owner

@nesbox nesbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, finally someone did it 😄
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup