Is there a method in Android that returns the data path on internal storage?
I have 2 Android smartphone (Samsung s2 and s7 edge) where i installed an application. I want to take a sqliteDB situated in this path:
/Android/data/application.most/files/most_db
The problem is that in Samsung s2 i must use this path to take the DB:
private static final String db_path = "/storage/sdcard0/Android/data/org.application/files/application_db";
Instaed, in s7 i must use this:
private static final String db_path = "/storage/emulated/0/Android/data/application.most/files/application_db";
I want to take this path independently by device.
Can you help me?
Thanks in advance.