Skip to content

Use of EXT_DIR with Android API 29#208

Merged
tony19 merged 4 commits intotony19:masterfrom
roedll:api-29-extdir
Nov 7, 2019
Merged

Use of EXT_DIR with Android API 29#208
tony19 merged 4 commits intotony19:masterfrom
roedll:api-29-extdir

Conversation

@roedll
Copy link
Copy Markdown
Contributor

@roedll roedll commented Nov 5, 2019

When resolving the "EXT_DIR" variable the method Environment.getExternalStorageDirectory() is used.
As of Android API 29 this method is useless and deprecated (see the docs for details).

This patch replaces the usages of "getExternalStorageDirectory" with the proposed alternative Context.getExternalFilesDir()

@roedll
Copy link
Copy Markdown
Contributor Author

roedll commented Nov 5, 2019

Can anyone please help me with fixing the Travis build?
Seems to be related with the uppgraded SDK version...

@roedll
Copy link
Copy Markdown
Contributor Author

roedll commented Nov 5, 2019

Seems to work now... ;-)

Copy link
Copy Markdown
Owner

@tony19 tony19 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Just a few minor requests.

@roedll roedll requested a review from tony19 November 6, 2019 10:36
@tony19 tony19 merged commit e65d640 into tony19:master Nov 7, 2019
@lock
Copy link
Copy Markdown

lock bot commented Dec 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the archived label Dec 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants