Method 1: dependency window
Method 2: start with the Registry
Method 1:
Because both USB storage devices and SD cards are storage devices,
When the device is connected, enumerate the sub-keys under the Registry path "HKEY_LOCAL_MACHINE // drivers // active". Find the items that match this value in self-check according to P-> dbcp_name, check whether the value of the key item "key" contains the "drivers // USB // clientdrivers // mass_storage_class
There are two ways to implement a photo in Android, one is to call the system's own camera and then use the photo data it returns. Another one is to use the camera class and other related classes to achieve the camera function, this method of the system is relatively high, dyeing is also more complex, the general common application just use the first one can.
start the camera code with intent:
Copy Code code as follows:
Intent Intent = new Intent (mediastore.action_image_capture
Author: gooogleman@foxmail.com
Some time ago, songtitan Niu mentioned in the forum how to update NK using SD card. As follows:
Http://topic.csdn.net/u/20081009/17/4E0F5E66-C7A0-43D2-B33F-14E132280F70.html
You can update NK in CE and bootloader.1 under CEYou can directly use the file system API to read NK. Bin and put it into the memory buffer. You can use deviceioctl to call the interface of the NAND drive
1. Get the storage device directory:/sdcard (normally)Sdpath=environment.getexternalstoragedirectory () +"/";2. Determine if the folder on the SD card exists: through the Exists () method of the File object. /* * * Determine if the document already exists; * /Public Boolean checkfileexists (String filepath) { file File=new file (sdpath+filepath); return file.exists (); } 3. Create
?? Sometimes the database is saved to an external storage or SD card for your needs (this can be done by encrypting data to prevent data from being cracked), such as an application that supports multiple data, every data needs a corresponding database, and the amount of information in the database is particularly large. This should obviously save the database in an external storage or
The first step is to increase the access rights of the SD card in Androidmanifest.xmldoes the SD card existPrivate Boolean Existsdcard () { if (android.os.Environment.getExternalStorageState (). Equals ( Android.os.Environment.MEDIA_MOUNTED) { return true; } else return false; }
========================================================== ==================================
Title: Support for SD card addition by wince
Abstract:
Note: Windows CE 5.0
Date: 2010.5.5
Name: Zhu minglei
========================================================== ==================================
The drivers and components to be added are as follows:
① Device Drivers | SDIO |
Tools related to SD card operationPackage Com.flyou.utils;import java.io.file;import android.os.environment;import android.os.statfs;/** * SD Card Related AUXILIARY class * * * */public class Sdcardutils{private Sdcardutils () {/* cannot be instantiated */throw new Unsupportedoperationexception (" Cannot be instantiate
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.Because the cache is not loaded into the cell phon
Android SDK + eclipse provides the SD card simulation method. The usage is as follows:
1. Create an SD card image file.
Mksdcard 1024 M sdcard. img
This command will generate an sdcard. imgfile in the current directory, which is the SD
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 card and SDHC memory
I. Burn the bootloader into the SD card1. Format SD card (not mounted): fdisk/dev/sdx-d Delete-N New partition-W save exit 6~default sdx1Two ways to format: Mkfs-t vfat/dev/sdx1Mkfs.vfat/dev/sdx12. Burn the bootloader into the SD card: NOTE-no mount./SD_FUSING.SH/DEV/SDX the
1. Call Environment.getexternalstoragestate () to determine if an SD card is plugged into the phone and the application has permission to read and write the SD card.Environment.getexternalstoragestate (). Equals (environment.media_mounted)A return value of TRUE indicates that the application has permission to read and write to the
1. The app is installed under/mnt/sdcard by default. If your SD card is not mounted, the system will prompt you to request an SD card or damage SD card, so now you can go to this/mnt/sdcard or/sdcard (the two are in the same direc
Android obtains the total capacity of the SD card, available size, total body memory capacity and available size, and androidsd
Public long getSDTotalSize () {/* get the memory card path */File sdcardDir = Environment. getExternalStorageDirectory ();/* StatFs View File System space usage */StatFs statFs = new StatFs (sdcardDir. getPath (); long blockSize = statFs
) $ (CFLAGS) [email protected] $CleanRM *.o Led.elf Led.binInput make, compile to generate Led.bin burn write file6, program Burn WriteCopy the Led.bin file generated by the previous action to the Windows environment and use the Winhex software to write the program.A. Open the Winhex software, the version used here is Winhex 15.1 SR-8, while inserting the SD card, the software opens the interface as shown:6
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
Debug Notes:First step: Read the physical sector 0.The four bytes starting from offset 0X1CA (458) are: 0x7,0x5b,0x1e,0x00;And the number of sectors is: 0x1e5b07=. Each sector is 512 bytes. So the SD card capacity is: *512/1024/1024mbyteThe 4 bytes starting from offset 0x1c6=454 are: 0xf9,0x00,0x00,0x00, which indicates that the boot sector is in the 0xf9=249 sector. Get 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.