Android Get Application's 'Home' Data Directory

后端 未结 3 2152
情书的邮戳
情书的邮戳 2020-12-01 00:15

A simple question, relating to the default \'home\' directory when an app writes to the internal memory. By default, any files created are placed by the OS (2.2) in:

3条回答
  •  暖寄归人
    2020-12-01 00:43

    Of course, never fails. Found the solution about a minute after posting the above question... solution for those that may have had the same issue:

    ContextWrapper.getFilesDir()
    

    Found here.

提交回复
热议问题