Alibabacloud.com offers a wide variety of articles about android sd card file system, easily find your android sd card file system information here online.
Move the Chinese Character Library to sdcard, modify the Registry as follows, and comment out simsun. TTC in common. bib so that it is not included in IMG.
[HKEY_LOCAL_MACHINE/software/Microsoft/fontpath]
"Fontpath" = "// sdcard"
[HKEY_LOCAL_MACHINE/system/GDI]
"Fontlinkmethods" = DWORD: 1
[HKEY_LOCAL_MACHINE/software/Microsoft/fontlink/systemlink]
"Tahoma" = "// sdcard // simsun. TTC, nsimsun"
"Courier New" = "// sdcard // simsun. TTC, nsimsun
.
Propertyconfigurator. getconfigurator (this). Configure ();
4. Put the microlog. properties file in the assets folder.
Note: The assets folder is the same as the res folder.
Then change the microlog. properties file to the following:
Microlog. Level = debugMicrolog. appender = logcatappender; fileappenderMicrolog. formatter = patternformatterMicrolog. formatter. patternformatter. pattern = % C [% P] % m %
The specific usage is as follows:
1. Download
Download the http://code.google.com/p/microlog4android/downloads/list and microlog. properties files to the microlog4android-1.0.0.jar
2. Create a logger object
Private Static final logger = loggerfactory. getlogger (main. Class );
3.ProgramThe initialization method in the oncreate method of the first activity
Propertyconfigurator. getconfigurator (this). Configure ();
4. Put the microlog. properties
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/unix_fans/archive/2009/08/20/4465038.aspx
1. Create an image file
Run cmd to enter the tools directory of the android SDK and run mksdcard to create the SDK.
For example, my tools directory is: e: \ Skyland \ android-sdk-windows-1.0_r2 \ tools>
Then: e: \ Skyland
Just got a raspberry pie from Simon's classmate--Prepare a 4GB SD card, ready to run Linux.
Use tool Win32diskimager on Windows 7 to write an IMG to SD card, error, failure.
Fortunately I have Linux VMware virtual machines, on the virtual machine, execute command sudo dd bs=1m if=2012-12-16-wheezy-raspbian.img of=/dev
If you use Google's own simulator or the real machine debugging, the SD card directory is/mnt/sdcard. This is a belief that we all know.but today with Genymotion debugging, found at all not open/mnt/sdcard This directory, at that time also did not pay attention to other information, think is adb, eclipse what problem, After restarting them still can't open, after a struggle, found an important clue! Oh, it
Sometimes, when the program reads and writes external data, the SD card status needs to be monitored to prevent exceptions. We can use registration broadcast for the SD card status.
The following is a classic example in the document;
// Listen to sdcard status broadcast broadcastreceiver available; // sdcard available
Objective:Use the activity of the Openfileoutput () method to save the file, the file is stored in the mobile phone space, the general phone storage space is not very large, storage of small files is OK, if you want to store large files such as video, it is not feasible. For large files like video, we can store it in SDcard. What is sdcard for? You can think of it as a removable hard drive or USB stick.To u
Http://leiwuluan.iteye.com/blog/1513167
Http://zhchzh1000.iteye.com/blog/763406
For an image upload function, you need to upload images in SD:
File_row.xml
Directory_list.xml
Testgrid. Java
import java.io.File;import java.io.FileFilter;import java.util.ArrayList;import java.util.List;import android.app.ListActivity;import android.os.Bundle;import android.view.KeyEvent;import android.view.View;import android.widget.ListView;public class TestGrid e
Step 1: Restart your PC, do not start x Windows
Step 2: $ sudo df-h
you should see/mount on Rootfs (has used 97% or so).
Step 3: $ sudo fdisk/dev/mmcblk0
command: Press P (print)
you should see three partitions, now write down the partition 2 information (/DEV/MMCBLK0P2).
command: Press D (delete partition 2)
command: Press P (print)
you should now see 2 partition
commands: press N (plus partition)
select P (main)
in partition 2 Select 2
first space Enter the beginning of the original partitio
applications are added, the file system will become larger and larger,
The maximum file size is 253 m, and uboot 2 m (address 0x5fe00000) framebuffer 1 m (0x5fd00000 ),
If this parameter is exceeded, you may need to change the program to multipart burn (currently uboot fat does not support multipart read files ).
2. Burn bin to
; }/** * Second, get the file from the Raw folder in resource and read the data (resource file can only read and write) * * @param fileinraw * @return */Public S Tring Readfromraw (int fileinraw) {String res = ""; try {InputStream in = Getresources (). Openrawresource (Fileinraw); int length = in.available (); byte[] buffer = new Byte[length]; In.read
When Android is developed, you will encounter the following scenarios
I want the application to download to the root of the current application, not the SD card
This file can then be accessed by the application or other application at any time, with permissions that are read globally
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.