I have a library class that should access a file in the data/data/package/databases folder.
The problem is that the package name changes depending on what app is using the library, so I can’t hard code it… How can I get the package name, or the path to the databases folder at run time?
Thanks
Use
Context.getPackageName().