Today, in the android project, you need to implement a GPS or network function to obtain the longitude and latitude of the current mobile terminal device. To implement this function, you must use the locationmanager class in the android framework.
Many applications need to add application promotion statistics. If the application generates packages from different channels one by one, the efficiency is low, and the distribution channel may be mistakenly mistaken, you can use ant to generate
WebView is a good thing. It serves as a mini browser and adopts the Webkit kernel. Therefore, it supports html, javascript, css, and so on perfectly. Sometimes, we can hand over the UI and even data processing to WebView, and cooperate with PHP and
PopupWindow is displayed in the pop-up window under the android. widget package. The official document describes the control as follows: "A pop-up window control can be used to display any View and will float the top of the current activity ".
The android. app package contains an ActivityGroup class, which is the Activity container and can contain multiple nested Activitys. This article uses the ActivityGroup function to nest the Activity to implement the Tab function. The tab UI can be
When a component of the Program is started, if no other component in the program is running, the Android system will start a process and a thread for the program. By default, all components in the same program run in the same process and thread
The Android system will maintain a program process for as long as possible, but when the system resources are insufficient, after all, the system will kill some old processes for some new or more important processes to release the memory. The system
Keep a record, which does not correspond to the province.
For Android 4.0
Code: IceCreamSandwich
API Level: 14
For Android 2.3
Code: Gingerbread
API Level: 9. For versions 2.3.3 and later, the API Level is 10.
For Android 2.2
Code:
Android applications are limited to a maximum of 16 MB of memory, at least on T-Mobile G1 (of course there are hundreds of megabytes of memory available now ). It includes two parts that the phone itself occupies and can be used by developers. Even
LoadDataWithBaseURL (baseUrl = null/"about: blank ",......), BaseUrl is null or "about: blank" specifies the relative path.WebView mainly calls three methods: LoadUrl, LoadData, and LoadDataWithBaseURL.1. LoadUrl directly loads webpages and images
Friends of the attribute ApiDemo should know that in android2.0, we can easily implement the animation switching effect between activities.After startActivity, you can call overridePendingTransition (int enterAnim, int exitAnim) to implement
ExpandableListView, as its name implies, is a scalable ListView. It can be used to implement menu settings and other functions. The project was used some time ago. Now I want to share with you the implementation method of ExpandableListView.
First:
We know that many software products have an interface for setting menu items, such as moji weather. When there are many options in the settings, we can choose to use listview.
The layout file is as follows:
Simple: Only one listview
Item layout:
Address: http://developer.android.com/training/advanced.html
Advanced Training contains a variety of classes that teach you best practices in Android development. These classes simplify the steps required to enhance your app with powerful platform
I continued to look into Android's new Overscroll functionality introduced in Gingerbread and discovered some more interesting things. the functionality to make a view scroll beyond its limits and then bounce back (almost exactly like iOS) is sort
SharedPreferences is a lightweight storage class on the Android platform. It mainly stores some common configurations, such as window status. Generally, reload the window status onSaveInstanceState in the Activity and save it using SharedPreferences,
// The service is in the same process as the visitor, so it is called the local service // Visitor: package cn.com. localquery; import cn.com. service. ILocalQuery; import cn.com. service. localQueryService; import android. app. activity; import
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