A thumbnail ThumbnailUtils class has been added in the system since Android 2.2, which is located in the android. media. the location of ThumbnailUtils can help us obtain thumbnails of video or image files in the system from mediaprovider. This
1. ContentProvider Concept
Basic concepts:1. ContentProvider provides a unified interface for data storage and retrieval.2. Use ContentProvider to share data between different applications.3. Android provides ContentProvider (including audio, video,
Xml Code
In your project list, the following code indicates that the activity is the activity started by the application. The system automatically creates a shortcut. When you use some applications, it sometimes allows you to create shortcuts such
The first time I played Android development, I summarized the environment collocation and the first program so that new users can quickly find a solution to similar problems.I. Environment matchingJdk installation and configuration are unnecessary.
1. Note: There is a symmetric relationship between putIn and. getIn. Only getIn can be used when putIn is used.2. public static final String PRENAME = "sharedpreferences"; specify the file name to be stored as sharedpreferences. xml. The file is
2.1.0 View and ViewGroup class relationshipAndroid View and ViewGroup in terms of composition architecture, it seems that ViewGroup is above View, View needs to inherit ViewGroup, but this is not actually the case. View is the base class, And
Recently, we found that adding a click event listener to the button will pop up a dialog box in the listener event. If the mobile phone response is slow, more than one will pop up and many posts will be searched online, it is not very suitable.In
After the android environment is set up, you need to configure the android environment variables, which will be helpful for future debugging.Next I will take the configuration steps in the mac environment:1. Create the file. bash_profile in the
For example, display an image in EditText.
The principle is to use ImageView to implement the relative layout (RelativeLayout ).
The Code is as follows:
Android: hint = "@ string/hint_operator_name"/>
Android: layout_alignLeft = "@ +
1. the src directory is the source code directory. All java files that can be modified by users and the java files added by users are saved in this directory. 2. The gen directory is a new directory in version 1.5 to save automatically generated
Let's take a look at the enable-related interfaces in AudioEffect today.
**************************************** * Source Code ************************************** ***********
// Test case 1.3: test getEnabled () failure when called on
The first thing to do during android development is to configure
Android SDK does not need to be installed. After downloading the SDK, decompress it directly,It is so easy to decompress the downloaded SDK package to a proper location;SDK
How long does the mobile phone wait after Android is started. For people who are new to Android, it may be a problem. If the C language is used to consider the problem, the first step is to consider the driver.In fact, Android has been encapsulated
Refer to the android system source code to obtain the standard time zone, including the strings of the previous afternoon. For example, if the system date format is, the returned string is AM.
It is mainly used to synchronize the system date format
There are two Android event processing mechanisms: listener-based event processing: callback-based event processing: The process of event processing. event processing involves three main parts, the event source, event, and event listener are shown
One Android big data parsing (xml ., join) four major application components (Activity, BroadcastReceiver, Service, ContentProvider) multimedia technology (audio, video, camera, and ringtone): Dialog, Toast, and Notification) five big data storage
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