In many cases, Google adopts a large number of MVC Architecture methods when designing Android, so thatCode, Artist and specific logic developers are independent. How to format strings in the resource file values/strings. xml of Android? Here,
When saving data, such as int and string
Using sharedpreference to store a small amount of data is undoubtedly a good choice.
Simple usage:
Read:
Sharedpreference pre = NULL; Pre = getsharedpreferences ("name of the file saved to
In Android 4.2, by default, the system will be unlocked after sliding to any position. If you want to add the unlock content, you need to modify the following:Code:
1. Frameworks/base/CORE/RES/layout/keyguard_glow_pad_view.xml
-Prvandroid:
Global timer alarmmanager
Note the following three points when writing the changewallpaperservice class:
To obtain image resources through inputstream, you need to put the image file in the Res/raw directory instead of the res/drawable directory.
In
Phone book is still very common in actual development. People often ask in forums to answer facts rather than facts. Make a record today.
The development of the phone book is nothing more than adding, deleting, modifying, and querying the contact
These three Resolvers have their own advantages. I personally prefer the pull parser because the operations of the SAX Parser are too cumbersome and Dom is not suitable for scenarios with large documents and small memory, only pull is lightweight,
The original Article is here. User Interface Overview
The Android system UI provides a framework for you to build your own app on it. The main interface, global navigation menu, and notification are important.
Your applications will play an
The latest custom work on Android 4.1 has happened to be faced with the problem of setting a third-party dynamic wallpaper as the default start wallpaper. Take the following notes.
The file to be modified is:
Find the following in
Today, we will introduce the very important space listview used in development;
A view that shows items in a vertically scrolling list. The items come from the listadapter associated with this view (automatically contains the scroll bar, data and
1. Do not destroy the activity during screen Switching
When writing an Android app, I encountered the following problem: the screen is converted from a vertical screen to a horizontal screen. At this time, the app activity will be destroyed and
In addition to sendmessage, Handler also provides the POST method for sending and processing messages;
Several methods are introduced:
final boolean post(Runnable r)final boolean postAtFrontOfQueue(Runnable r)final boolean postAtTime(Runnable r,
Prerequisites:
For Ubuntu 11.11 image download, I directly install Ubuntu instead of a virtual machine or dual system.
Ubuntu is basically installed on the Internet:
1. Download the System Image File
2. Burn the boot into the CD or make a USB flash
Android supports many types of sensors:For example, acceleration, gravity, light, and magnetic sensing.Two classes and one interface commonly used by this APISensormanager: Sensor Management class;SENSOR: a class that describes the
Viewflipper for Android Development
/*
* Viewflipper for Android Development
* Beijing Android Club group: 167839253
* Created on: 2012-7-25
* Author: blueeagle
* Email: liujiaxiang@gmail.com
*/Overview
We often encounter a situation in the
Compilation of Android source code in fedora13 for Android Development
/*
* Compile the android source code in fedora13 for Android Development
* Beijing Android Club group: 167839253
* Created on: 2011-8-24
* Author: blueeagle
* Email: liujiaxiang@
Linkify for Android Development
/*
* Popupwindow for Android Development
*
* Created on: 2011-8-11
* Author: blueeagle
* Email: liujiaxiang@gmail.com
*/
Linkify is a helper class that automatically creates a hyperlink by matching the RegEx
First knowledge of camera image acquisition in Android Development
/*
* First knowledge of camera image acquisition in Android Development
* Beijing Android Club group: 167839253
* Created on: 2011-8-24
* Author: blueeagle
* Email: liujiaxiang@gmail.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service