Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getActivity().getExternalCacheDir() not correctly redirected. #9

Open
fanthos opened this issue Mar 15, 2022 · 2 comments
Open

getActivity().getExternalCacheDir() not correctly redirected. #9

fanthos opened this issue Mar 15, 2022 · 2 comments

Comments

@fanthos
Copy link

fanthos commented Mar 15, 2022

Describe the bug
getActivity().getExternalCacheDir() returns /storage/emulated/0/Android/data/com.example.test2/cache, and listFiles returns null instead of empty array.

To Reproduce
Steps to reproduce the behavior:
Run getActivity().getExternalCacheDir() + "\n" + Arrays.toString(getActivity().getExternalCacheDir().listFiles()) in app.

Expected behavior
File.listFiles should return array.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: Vivo V2055A
  • OS: Android 12
  • Version: master
@fanthos
Copy link
Author

fanthos commented Mar 15, 2022

Merging android-hacker#1035 resolves this problem on my device.

@fanthos
Copy link
Author

fanthos commented Mar 17, 2022

I added android:extractNativeLibs="true" should add to <application> and it works.

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

No branches or pull requests

1 participant