In the init. rc file, you can see the following services loaded:
Service nexus/system/bin/nexus
Socket nexus stream 0660 root system
Disabled
The nexus service code is in the directory:
Android-2.0/system/core/nexus
The nexus Service monitors
In earlier versions, there was only one drawable, while in version 2.1, there were three types: drawable-mdpi, drawable-ldpi, and drawable-hdpi, which were mainly used to support multi-resolution.Differences between drawable-hdpi, drawable-mdpi, and
In order to develop android applications, it is too troublesome to find the sdk has no source code during development. The following describes how to download the source code and configure it.
Git is required to download the source code. Download a
In the beginning, it should be noted that Google has to hide some APIs (public classes, methods, or constants marked with @ hide) for a reason. A major reason is that the Android system is still evolving. Android 2.3.4 is coming soon from 1.0 and 1.1
After studying android's asynchronous loading of images from the network, the following is a summary:
(1) Because android UI updates support the single thread principle, data is retrieved from the network and updated to the interface. In order not
One problem mentioned in the previous article is that the sensor refresh frequency is too fast. If we want to create a UI, we need to draw a moving arrow Based on the direction data, the drawing interface needs to be refreshed too frequently,
1. The database cursor is not closed.2. No cache contentview is used to construct the adapter.Derivative listview optimization problem: Reduce the number of objects for creating a View and make full use of contentview. You can use static classes to
I use the MediaStore. ACTION_VIDEO_CAPTURE intent class to capture the video, the video stored in default location (gallery), I want to store the video in specific location with specific name.I use MediaStore. EXTRA_MEDIA_TITLE and MediaStore. EXTRA_
Step 1: Construct the URL required by the Geocoder APIURL formatHttps://maps.googleapis.com/maps/api/geocode/output? ParametersThe output option is json/xml, and the parameters option is address/language/sensor.URL exampleHttps://maps.googleapis.com/
We can also create another Shard, DialogFragment. As the name implies, DialogFragment is a Fragment floating on the Activity. DialogFragment is useful when user feedback is required. Similar to ListFragment, The DialogFragment base class must be
As described in the android documentation, the SDK level (integer) the phone is running is available in:Android. OS. Build. VERSION. SDK_INT;The enum corresponding to this int is in the android. OS. Build. VERSION_CODES class.
Code example:Int
Android custom View must inherit the View and override constructors, onDraw, (onMeasure) and other functions.If a custom View requires custom attributes, you must create attrs. xml under values. Define your attributes.
Add xmlns: prefix =
There are two types of intentions in android: explicit and implicit,
Explicitly requires that you know the package and class of the activated component
For implicit intent, you only need to know the actions and data of the jump activity to activate
AIDL: Android Interface Definition Language, which is the description Language of the Android Interface.
The process in the Android system cannot share memory. Therefore, some mechanisms need to be provided for data communication between different
In Android, network programming can be implemented in multiple ways:
Create a URL and use URLConnection/HttpURLConnection
Use HttpClient Use WebView
Create a URL and use URLConnection/HttpURLConnection
Java.net. * provides basic functions for
You can use the Intent. createChooser () method to create an Intent and pass in the desired Sting as the title.Take the wallpaper selection box as an example. When you press the button in the blank area of the Launcher workspace, the wallpaper
Sometimes, our programs need to provide options for users to customize their own use styles. For example, you may allow users to automatically save logon information, set the page refresh time, and so on. On the Android platform, we can use 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service