Access the SD card files from Android application
I have the following requirements:
When the user clicks on the button , the SD card should be accessible to the user.
The user clicks on a specific image & I need to save the SD card path of the image selected
I need to resize the image before displaying that to the user within the Android application
Kindly provide me any blog/article link from where I can 开发者_如何学JAVAget the sample code for the same. Thanks in advance.
You can use standard file APIs to access "/sdcard", or more safely:
Environment.getExternalStorageDirectory()
Also, you can scale images easily using
Bitmap.createScaledBitmap()
精彩评论