The SD card contains four types:
SDSC: Standard capacity Card, sd1.1/1.0 specification, capacity 1MB-2GB, file format FAT32
SDHC: High capacity SD card, SD2.0 specification, capacity 4g-32g, file format is FAT32
SDXC: Capacity-enlarged secure
An example of this article describes the Android programming method for file read and write on SD card. Share to everyone for your reference, specific as follows:
A lot of knowledge can be extrapolate only after you have a real understanding of mastery. Java in the file operation and the Android SD card file operation
public static final String DATABASE_NAME = "/mnt/sdcard/demo. db "; // database name public static final String TABLE_NAME =" mytag "; // data table name. A database can contain multiple data tables, similar to Sheet 1 in excel, sheet2 // MyDBHelper constructor. We are concerned with the name DATABASE_NAME and VERSION public MyDBHelper (Context context) {super (context, DATABASE_NAME, null, VERSION );}
Because if it is just a separate file name, The Last database file created is saved on the in
When using Android phones, we found that someProgramAllowed to be moved to the SD card, but some cannot? Why?
Because Android 2.2 and later versions are allowed to be moved to the SD card. However, all applications developed earlier do not have this function.
So how can I allow your app to move to the
/DEMO.DB"; Database name public
static FINAL String table_name = "mytag";//datasheet name, a database can contain more than one datasheet, similar to the Sheet1,sheet2 in Excel
// Mydbhelper's constructor, we are concerned with the name database_name and version versions public
Mydbhelper {
Super database_name, NULL, VERSION);
Because if just a separate file name, the last created database file is stored in the phone's internal memory
Android implements SD card and memory file storage in the same way. The method for obtaining the file path is basically the same as that of java. The following is the code of the program. The configuration location and implementation are different. Others are the same. The following code is used:
Main. xml:
[Html]Android: orientation = "vertical"Android: layout_w
() + "/image.jpg"); bitmap newbitmap = imagetools. zoombitmap (bitmap, bitmap. getwidth ()/scale, bitmap. getheight ()/scale); // because the bitmap memory usage is large, memory needs to be recycled here; otherwise, an out of Memory exception bitmap will be reported. recycle (); // display the processed image on the interface and save it to the local iv_image.s
If you have done multimedia applications, will certainly be distressed, how to obtain the SD card multimedia files. Android is still very powerful, and if you know how to invoke the Android API, everything is OK.
When a cell phone or simulator is powered on, the Android Mediascanner is invoked to scan the SD card and t
https://www.sdcard.org/downloads/formatter_4/eula_mac/Sdformatter mac Edition is an SD card repair tool on Mac OS platform, Sdformatter is a handy SD card format tool, capable of formatting SD memory
Read and write the files in the SD card as follows: 1 call Environment's Getexternalstoragestate () method to determine if the SD card is plugged into the phone and the application has the ability to read and write the SD cardIf the phone is already plugged into an
Transfer the Android Market cache to the SD card sizeProgram!
A previous tutorialHow to clear System junk in Android G1
Now I have a better way to save memory, that is, to transfer the cache in the market to the SD card, so that you can "have no scrubs" on the market.Becau
related applications in your device generally support the following file formats:
• Music: mp3, M4A, MP4, 3GP, 3GA, WMA, OGG, OGA, AAC and FLAC.
• Image: bmp, GIF, JPG, and PNG.
• Video: 3gp, MP4, AVI, WMV, FLV and mkv.
• File: doc, docx, xls, xlsx, ppt, pptx, pdf and txt.
In addition, some file formats are not supported and may be related to the software version of your device. Please download kiesfrom Samsung tocheck the current software version of the device to upgrade the lat
files like your phone's own file system browser.Whether it's an internal SD card or an external SD card, it's a phone's external storage, and the phone's internal storage and external storage share the same device.Internal Storage Path:All apps installed to the phone will generate a package name folder in the Data/dat
Solution:
After loading the external SD card, through the main menu into the "settings-storage" To set the default storage SD card, when the installation of software, installation interface Select the application installation location for the "SD
1. As shown in the following figure, we clicked "Application" under the desktop.
2. Into the mobile phone "set" we find program management.
3. The following image shows an "Application Manager" and we click on it again.
4. We find to move to the SD card software, such as our "flying letter" as an example.
5. After entering, we then click on "Move to
through MTP or large storage mode.After the download, copy the downloaded ZIP file from the computer to the SD card of the mobile phone or flash memory of the mobile phone (depending on the mobile phoneIf the mobile phone's primary storage is an SD card, it is copied to the
Samsung G9008W support to move installed parts of the application to the external SD card (note: Not all applications are supported to move to external SD cards, depending on whether the software supports)
in order to save the phone's built-in storage space, Enable your device to download and install more applications and store more files. If you want to do th
;} /** * Gets the remaining available capacity bytes in the space of the specified path, in byte * * @param filePath * @return capacity byte sdcard free space, internal storage free space */public StatiC Long Getfreebytes (String filePath) {//If it is the path under the SD card, get the SD card usable capacity if (File
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.