Issue
File filePath = new File(Environment.getDataDirectory().getAbsolutePath());
But i return only /data, so where is /data is located and how i get andrid/data/"package_name"/
Solution
Though this is not the write way of getting the package name from your data folder but this can be used as a temporary solution:
File file=getApplicationContext().getFilesDir();
Thanks to @blackapps for making the solution more simple.
Answered By - Danish
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.