fileinputstream (File); int Len = 0; byte [] Buffer = New byte [1024]; while (LEN = inputstream. Read (buffer ))! =-1) {sb. append (new string (buffer, 0, Len);} tvresult. settext (sb. tostring (); // close the stream inputstream. close ();} catch (exception e) {// todo auto-generated catch blocke. printstacktrace ();}}}});}}
Effect
File explorer shows the same effect:
Development considerations:
1. You must not forget to add permissions.
2. Check whether the
Recently, I am working on an image upload function. I need to provide the path for uploading images to the SD card. I have read some examples on the Internet. The code is very simple after debugging. The layout file is as follows:
Copy codeThe Code is as follows: Android: layout_width = "fill_parent"
Android: layout_height = "fill_parent"
Android: orientation = "vertical">
Android: id = "@ + id/select"
Andr
. Apps. Maps-1/Dev/block/dm-3 2.0 m 876.0 K 1.2 m 42%/mnt/ASEC/COM. Alibaba rasoftworks. Quadrant. UI. Advanced-1
Where/dev/block/dm-0 to 3 is the APK app we installed on SD. As you can see (I have installed four applications on SD)
4. This only installs applications on SD, but their buffered data or temporary data are
Below we introduce through Tencent mobile phone Butler software moving function to help us achieve, the specific steps are as follows.
1. If your computer does not have Tencent mobile phone Butler installed, we install Tencent Mobile phone Butler to open to find "cleanup acceleration"
2. Then in the open window will see a "cell phone slimming"
3. Then we find the "open Now" button and click Open
4. Then you will see that there is a "software photo moving" and then w
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.