The main introduction to the summary of the development of Android common tools classes, most of the same applies to Java.Currently includes Httputils, Downloadmanagerpro, Shellutils, Packageutils, Preferencesutils, Jsonutils, FileUtils,
The primary goal of Okhttp package design and implementation is efficiency. This is one of the important reasons to choose Okhttp. Okhttp provides support for the latest HTTP protocol version HTTP/2 and SPDY, which allows all requests made to the
Objective:
Today, I modified a project on the use of WebView bug, aroused my summary of webview motivation, today to make a summary.
Usage scenarios:
1.) Add permissions
2.) Layout file
3.) Data loading
Loading local
Refactoring the next one of their own news clients, all using fragment for page switching, only one entry activity as the start of the program activity, one of the interface needs to call the camera to identify two-dimensional code, and then use the
This example describes the use of the Android List dialog box. Share to everyone for your reference. Specifically as follows:
Main.xml Layout file:
Array.xml array:
Swimming
playing basketball
This article describes the Android implementation of the method of listening to phone call status. Share to everyone for your reference. Specifically as follows:
To add permissions in the manifest file Androidmanifest.xml:
Copy Code code as
This example describes the Android toast notification usage. Share to everyone for your reference, specific as follows:
Toast displays a message to the user on the phone screen, and the information disappears automatically after a period of time.
1
The example in this article describes how Android invokes WebService. Share to everyone for your reference. Specifically as follows:
WebService is a remote calling standard based on SOAP protocol, which can integrate different operating system
About Android 6.0Android old version network request:1,httpurlconnection2,apache Http ClientAndroid6.0 Version Network request:1,httpurlconnection2,okhttpAndroid6.0 version of the old network abandoned the request, then what is its advantage?1,
Developers can declare the UI in the following two ways: either through an. xml file (without a preview interface) or a. axml file (with a preview interface), or with C # code.When you describe the user interface (UI) with a. axml file, the designer
Problem background: When doing a chart show, the ListView can slide up and down, but the leftmost column slides to the right, stays the same, and the table head stays the same when it slides down.
Useful two ListView implementations, but tested, as
The details are as follows:
intent.action_airplane_mode_changed;Broadcast when flight mode is closed or turned on
intent.action_battery_changed;Charge status, or the battery's electricity changesBattery charging status, charge level change, can
*res/raw and assets the same point:
1. The files in both directories will be stored intact in the APK package after being packaged and will not be compiled into binary systems.
The differences between *res/raw and assets:
The files in the
This article describes the Android based on the broadcast event mechanism to implement a simple timing reminders function code. Share to everyone for your reference, specific as follows:
1.Android Broadcast event mechanism
The broadcast event
This article illustrates the abstract class Abslistview usage of Android programming learning. Share to everyone for your reference, specific as follows:
I. The relationship of inheritance
Public abstract class Abslistview extends adapterview
The method of uploading before the mobile end, some friends Test said that the micro-letter support is not very good, and some Andro also do not support, in fact, I have another method, but the example has not been sorted out, and contact me a lot
This example describes the Surfaceview usage in Android. Share to everyone for your reference, specific as follows:
Here a small program code, mainly using Surfaceview to draw a circle on the screen, you can by pressing the arrow keys and touch the
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
Before analyzing the Android event distribution mechanism, identify the two major types of Android's underlying control: view and ViewGroup. View is the normal control, there is no child layout, such as button, TextView. ViewGroup inherits from view,
Taobao client recently, when editing the address of a region to select the function. Look at the effect of the above feel pretty cool, when scrolling, is the last one from below fly up next to the previous one. Just make a play for yourself.
Said
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