Android Question What's the best place to store Log File?

Pravee7094

Active Member
Hello All,
I want to store the log file in mobile phone and user can able to access the log file. Because the only way to find error.
Ex: If any error occurs in my app, We just tell the customer to send the log file and can identify which place we did the mistake.

Now question is What's the best place to store the log file?
1. If we choose DirInternal, Users can't able to access the file.
2. If we choose DirDefaultExternal, From Android version 11, Users can't able to see the files inside the "Android" Folders. (Samsung Mobile Phones, I did not worked with other mobile.)
3. If we choose DirRootExternal, From Android version 11, Users can't able create folders in it.

Any other Suggestion?

Thanks

And I used below class to write log.
 
Top