Programmatically accessing internal storage (not SD card) on Verizon HTC Droid Incredible (Android)

前端 未结 3 803
北海茫月
北海茫月 2021-02-08 05:58

I\'m trying to find information on how to programmatically access the HTC Droid Incredible\'s supposed 8GB of Internal Storage M

3条回答
  •  攒了一身酷
    2021-02-08 06:30

    Just simply use this:

    String primary_sd = System.getenv("EXTERNAL_STORAGE");
    if(primary_sd != null)
        Log.i("EXTERNAL_STORAGE", primary_sd);
    String secondary_sd = System.getenv("SECONDARY_STORAGE");
    if(secondary_sd != null)
        Log.i("SECONDARY_STORAGE", secondary_sd)
    

提交回复
热议问题