0

I installed a database on a Samsung Note 5 programmatically in this directory:

public static String dataPath = "/mnt/sdcard/mycompany/sms2email/data/";

I am using the Android Device Manager to go pull out the database file from my device and I cannot find the directory in ADM. On a Nexus 7, the location seemed to be:

mnt/shell/emulated/0/

Where is this directory for the sdcard?

Kristy Welsh
  • 7,828
  • 12
  • 64
  • 106

1 Answers1

0

Never hardcode the sd directory. Use Environment.getExternalStorageDirectory() instead. The location of the sdcard will differ between models extensively.

Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127