Access the SD card files from Android application

后端 未结 1 616
野的像风
野的像风 2020-12-07 06:24

I have the following requirements:

  1. When the user clicks on the button , the SD card should be accessible to the user.

  2. The user clicks on a s

1条回答
  •  独厮守ぢ
    2020-12-07 06:42

    You can use standard file APIs to access "/sdcard", or more safely:

    Environment.getExternalStorageDirectory() 
    

    Also, you can scale images easily using

    Bitmap.createScaledBitmap()
    

    0 讨论(0)
提交回复
热议问题