This article mainly describes how to write data to the SD card, where the main technology is environment in the method.1.2. Implementation code:/datasave/src/com/amos/datasave/savepasswordservice.java //Write data to SDcard Public voidSavepasswordtosdcard (string name, string password) {//Android 2.1/sdcard/xx.txt//Android 2.2/mnt/sdcard/xx.txt//Self_define/excard/xx.txt//File externalstoragedirector
1. In S5 Mobile standby desktop to find "Information" icon, click to enter.
2. After entering, we find a person in the information management interface, as shown in the following figure.
3. Then we long press this letter information, will see a pop-up "copy to SD card" click on it.
Attention, this can only copy a strip:
1. Also click "Info" on the phone's desktop.
Like most of my friends, I used to only use the SD card SPI mode. This mode is simple and can be implemented on most single-chip computers without the need for CRC verification. The SD mode can achieve simultaneous transmission of four data lines, which has a great advantage over the SPI mode in terms of speed. Therefore, this project selects the
of these two registers is related to the communication mode (SD mode or SPI mode. the mmccard does not have the SCR and SD status registers. see table 1 below:
Table 1 seven registers in the SD card
1.1.ocr register
The OCR register stores the allowable power supply range of the
card found!\n");Retries = $; Do{resp= Mmc_cmd (1,0x40ff8000, MSC_CMDAT_RESPONSE_R3, MSC_CMDAT_RESPONSE_R3);//Matching voltage MMC card is CMD1 SD card is CMD41 because Power is a time, so we use a do{}while to delaySd_mdelay (Ten);} while(retries--!) (resp[4] 0x80));//The power-up was completed until 31 bits of 1 in t
power on is a time, so we use a do{}while to delay sd_mdelay (10); } while (retries--!) ( RESP[4] 0x80)); Until the 31 bits in the OCR reply value in R3 are 1, the power-up completes the IF (resp[4]0x40)//voltage verification with the data access mode bit in the last answer, or, if 1, the SDHC card is based on block address access {sd2_0 = 1; / /You can also us
power on is a time, so we use a do{}while to delay sd_mdelay (10); } while (retries--!) ( RESP[4] 0x80)); Until the 31 bits in the OCR reply value in R3 are 1, the power-up completes the IF (resp[4]0x40)//voltage verification with the data access mode bit in the last answer, or, if 1, the SDHC card is based on block address access {sd2_0 = 1; / /You can also us
command, 4 data cable (4 access) (SD mode command via command line transmission)SPI mode: Data serial transmission, 2 ground, 1 power supply, 1:, 1 chip Select, 2 data cable (1 in 1 out) (SPI mode command via data cable) The default refers to SD mode, if no separate description is included. (This article does not involve SPI mode learning)2.2
SD card File read/write
Chess Boy 1048272975
SD card (Secure Digital Memory card) has the advantages of small size, large capacity, fast data transmission, pluggable, security, etc., which are widely used in portable devices. For example, as a memory
Android --- 36 --- read sd card content, android --- 36 --- sd1. Call Environment. getExternalStorageState () to determine whether the SD card is inserted on the mobile phone and the application has the permission to read and write the SD card.Environment. getExternalStorage
Android sd card cannot immediately display the file to be written after the file is written. Solution: Android sd
Every time a file is written to the SD card through an output stream, the file is connected to the computer, and a mobile disk is simulated using MTP. Opening t
controller. It will be transplanted between different processors and does not need to be changed. Ssung. dll is an intermediate layer responsible for integrating commands and management.
1.3 client driver
The interface between the client driver and the SD client driver allows the client driver to communicate with the SD device. The client-side Driver Interface abstracts the execution of
Android sd card cannot immediately display the file to be written after the file is written. Solution: Android sd
Every time a file is written to the SD card through an output stream, the file is connected to the computer, and a mobile disk is simulated using MTP. Opening t
Recently saw some netizens often ask TF card and SD card difference, then should distinguish?
Difference between TF card and SD card 1: Appearance distinction
SD
drivers act as the extraction and management layer between the master control driver and the client driver. It is included in the SDbus.dll file. Provides a standard API for client-side drivers that allows running on any Windows CE-based device. The bus driver will be independent of the application and the main control side drive, porting between different processors, without the need for changes. SDBus.dll is the middle tier, responsible for consolidating commands and management.Client-driven
-500-96 = 6994mb.
Another detail is that when you use the partition software to perform partition operations, the partition size may not be exactly the above value, more or less, or it doesn't matter if there is a decimal number.
4. Partitioning Method
The above mentioned a lot of SD card related knowledge, may be a lot of oil are impatient, so let's talk about the specific
One, SD card partition:
1-First installs the following Partition tool on the computer, WinXP the environment to run normally, but in Win7 operation must choose the XP SP2 (3) after the compatibility to be able to run normally.
Partition Tools Download:
2-After installation, the SD card is loaded in
[Description]
How to automatically install the APK on the external SD card to the memory card of the mobile phone when the mobile phone is started for the first time.
[Solution]
Design Concept:
1.Put the APK to a directory on the SD card, suchApks_preinstallDirectory.
(For
The external SD card on the Android phone, at first, in the first few years of Android, when the storage of the phone is very limited, not like now everywhere 16G, 32G and 64G storage, so at that time the handset some manufacturers allow to insert the external SD card, At this point the
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.