These two days when the widget was developed with the WAC SDK, Eclipse's Consle encountered the following error while starting the Android emulator:
Copy Code code as follows:
[2011-11-27 22:08:49-ddms]transfer error:read-only File system
Then the widget cannot be installed and executed! In reference to the official forum on the same issue after a post, there is no real solution (main
Document directory
1.
Step 1: Set the simulator to support sdcard
Step 2: Set permissions in the Application
Note:
Suggestion:
There are multiple ways to store data, such as database storage, sharedpreferences storage, and file storage;
Here we will introduce the simplest file storage method;
In simple terms, file storage is the IO stream in the general
Resource Access in Android Resources in Android refer to non-code parts and external files.Generally, native files are stored in assets. For example, MP3 files cannot be directly accessed by Android programs. They must be read in the form of binary streams through the AssetManager class.Resources in res can be directly accessed through the R Resource class.The R
Use the android packaging tool (aapt) to combine Dex files, resource files, and androidmanifest. xml files (in binary format) into an application package (APK ).
When optimizing the android Dex file, you must note that the DEX file structure is compact, but we still need to find ways to improve the running speed of
Finally:
Implement the SD card file browser
Technical analysis:
The main controls used:Listview
How to fill in the listview control, you need to traverse all the files under the entire SD card. If you traverse a folder, first obtain all the files under the folder, then we can fill all the files in this listview, so we can repeat it.
How can I get the modification date of a folder or file?
The
filtered getname () The string returned whether there is ". /”:2, dynamic link library file libdolphin.so, and is not placed in the Application Data Lib directory, but placed in the files directory:The place where the load is used is the searchredirector in the Com.dolphin.browser.search.redirect package:The app uses System.load () to load libdolphin.so instead of system.loadlibrary (), in Android, System.
For Android to use the file system to read and save the file, refer to the java.io package below for the relevant package.1) Select internal Storage (Internal Storage) or external storage (External Storage)Android device has two storage areas: internal storage and external storage space, as the name implies, internal s
is part of the media/download system.These test keys is used strictly in development, and should never be assumedTo convey any sort of validity. When $BUILD _secure=true, the code should notHonor these keys in any context.Signing using the OpenSSL commandline (for Boot/system images)--------------------------------------------------------------1. Convert pk8 format key to PEM format% OpenSSL pkcs8-inform der-nocrypt-in testkey.pk8-out Testkey.pem2. Create a signature using the PEM format key% O
is part of the media/download system.These test keys is used strictly in development, and should never be assumedTo convey any sort of validity. When $BUILD _secure=true, the code should notHonor these keys in any context.Signing using the OpenSSL commandline (for Boot/system images)--------------------------------------------------------------1. Convert pk8 format key to PEM format% OpenSSL pkcs8-inform der-nocrypt-in testkey.pk8-out Testkey.pem2. Create a signature using the PEM format key% O
Tagged with: Peer technology BT Edge-to-peer Android BT downloadCan Android mobile phone be able to implement BT file side-to-bottom broadcast? An analysis of the feasibility of a PC-like download-side playback technology for Android mobile phonesPC-side implementation of the BT fi
Resource Access in Android
Resources in Android refer to non-code parts and external files.
Generally, native files are stored in assets. For example, MP3 files cannot be directly accessed by Android programs. They must be read in the form of binary streams through the AssetManager class.
Resources in res can be directly accessed through the R Resource class.
Th
A major feature of Android is its desktop notification system. unlike iOS Desktop Management, Android has a desktop system for managing and displaying apps and desktop widgets. Android provides a default desktop Interface
Of course, we can also use third-party desktop applications. The android launcher source code is \
the keyedvectorDevice structure Information: Equipment FD (open (/dev/input/event) return) and information (Name/bus/vid/pid, which will open 3 profiles based on this information (Idc:input device config/keylayout: Keyboard layout/kcm:key Character Map), mapping informationAndroid input System Application layer key 1 with akeycode_1 = 8来, while in the Linux kernel key 1 is represented by the key_1=2, so there is a direct conversion between the two, using the keylayout is KL
A few words.
Using Gradle and its recommended project framework
Put sensitive data such as passwords into Gradle.properties
Do not write HTTP clients yourself, use volley or okhttp libraries
Use the Jackson Library to parse JSON data
Avoid guava and Dalvik 65K methods limit do not use too many libraries
Using fragment to draw UI interfaces
Activity is mainly used to manage fragment
Layout file XML is also code, organize the
When optimizing the Android DEX file, you must note that the DEX file structure is compact, but we still need to find ways to improve the running speed of the program, we still need to further optimize the DEX file.
Adjust the byte order of all fields LITTLE_ENDIAN) and none of the fields in the alignment structure ver
1. Structure of the android File SystemAfter the android source code is compiled, the system. IMG, ramdisk. IMG, and userdata. IMG image files are obtained.
Ramdisk. IMG is the file system of emulator. IMG includes the main packages, libraries, and other files, userdata. IMG includes user data. After loading these thre
installation package. In Windows, it is difficult to extract installed programs into an installation package. However, Android and Windows are very different. We can extract installed apps from Android as the Apk installation package. Let's take a look at how to do it.
Extract Apk directly from the root directory
Download the new version of manager series software:
RE
Android sdcard storage solution (based on wrapfs File System)
The previous two articles mainly describe the fuse-based sdcard storage solution for android. For details, refer:
Android sdcard storage solution (based on fuse file system): One and
I. Downloadmanager class description:
A download management class has been added since Android 2.3. You can find android. app. DownloadManager In the SDK documentation. The download management class can process multiple HTTP download tasks for a long time. The client only needs to provide the requested Uri and the location where the target file is stored, downloa
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.