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"/
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"/
2
Answers
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:
Thanks to @blackapps for making the solution more simple.