Annex data tag



  • Established a data folder

    String pathData = Environment.getExternalStorageDirectory().getAbsolutePath() +
            "/android/data/ru.frozik6k/lohouse/";
    if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
                File path = new File(pathData);
                if (!path.exists())  path.mkdirs(); 
    }
    

    The file is well established and the data remain. But I've noticed that other apps have painted the app. And there's no data on my folder, and if my program is removed, the folder remains. How is it right to create this folder so that the icon is and the folder is removed when the program itself is removed?



  • To get the way to the director with your Sd card application, you need to use it. Context.getExternalFilesDir(null)
    It's the way the species comes back. sdcard/Android/data/data/<тут package вашего приложения>/


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2