-3.3 V. If the SD card can work in this voltage range, it also returns 0x1aa, no problem. You can work. However, I have not found any more information for a long time. I strongly recommend that you add this information to the manual.
3) acmd41. this is a special command, which is actually running 55 + 12741. It is used to query whether the SD
Android get SD card path method:It is not recommended to directly write dead Android SD card path .Public String Getsdpath () {File Sddir = Null;boolean sdcardexist = Environment.getexternalstoragestate (). Equals ( Android.os.Environment.MEDIA_MOUNTED); Determine if the
Android gets the SD card path and determines whether the SD card exists
Android SDK path:
It is not recommended to directly write the path of the android SD card.
Public String getSDPath () {File sdDir = null; boolean sdCardExi
Android basic learning: Check whether the SD card exists and obtain the root path of the SD card
/*** Get the root path of the device -- ExternalStorageDirectory ** @ param context * @ return */public static String getRootPath (Context context) {String path = Environment.
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 use the 30 bits of OCR in the R3 return value to checkCheck whether the high-capacity
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 use the 30 bits of OCR in the R3 return value to checkCheck whether the high-capacity
command: For resetting, switching SD card status, getting related information Read Block command: Read single, multiple block data, set block length Write Block command: Write single, multiple block data, set block length Erase block command: Erase the corresponding block data Write protection command: Set, cancel the corresponding address of the data write protection, you can make other programs canno
e.printstacktrace (); the } + returnpaths; - } the}View CodeFirst, I wrote it as a tool class, so I declare a private constructor to prevent the class from being instantiated.Then, first get the Android standard part of the external SD card, if it is available.Then using the runtime, through the command line function "mount" to obtain all the
SD card is very fragile performance is very unstable, accidentally broken off. SD card can greatly improve the cell phone or camera storage capacity, and greatly enhance the use. But if the SD card strike is broken, you will lose
1. Introduction
To install the application on the SD card and TF card, the android system does not support it by default. It has only one ASEC mount point:/mnt/secure/ASEC. In my system, this mount point is occupied by/mnt/sdcard, so the TF card is not supported. To solve this problem, there is no other way except to r
computer. Question: Why not use the DF command here?The reason is that if your TF/SD card has only one partition but the partition is corrupted, or there are multiple partitions but there is no identifiable partition, then the DF command is unable to see the TF/SD card, so
only)There is a very important thing, I tried many times, ZYNQ platform is not to start, Uboot also do not output any information. This little question stuck with me for a long time, but when I washed it this morning, it occurred to me that Xilinx Vivado and the SDK were started in root, and that generating boot.bin might also have permissions issues. So....I get the board, and then in the SD
/s3c2410-ohci/usb1/devices/platform/s3c-sdhci.0/mmc_host/mmc0
Note: The TAB key must be split between each parameter, otherwise the Vold program will not read the parameters correctly.
This way when the USB disk inserted, the Android interface program will identify, prompted to have SD card insert (why not Tip u disk, this if you are interested in your own research), you can use the picture browser, audio
Today's Android phone models are complex and diverse, resulting in the development process using the official access to the SD card method in the part of the mobile phone does not apply, so need to develop their own packaging, the following is the code, hope to share out, we learn together/*** Get the Mobile phone SD
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.