Summary of time-consuming operations in Android developmentDuring the development of Android software, time-consuming operations are often encountered. To make the mobile app run smoothly, the time-consuming operation needs to be done in a new
On the custom view, I believe most developers are already very familiar with the network of examples are also very many, a variety of cool hanging day custom view is also endless. This article is only a primary learning course, which is of reference
First, what is quartz2dQuartz 2D is a two-dimensional drawing engine that supports both iOS and Mac systemsQuartz 2D can do the job:Drawing: lines \ triangles \ rectangles \ Circles \ Arcs, etc.Draw textDraw \ Generate picture (image)Read \ Generate
Recently contacted FFmpeg, found a lot of relevant compilation data, have not compiled successfully, a few days ago on GitHub to find a script (https://github.com/kewlbear/FFmpeg-iOS-build-script), can be perfectly compiledThe steps are as follows:1.
Happy numberWrite an algorithm to determine if a number is "happy".A happy number is a number defined by the following process:starting with any positive integer and replace the number by the Sum of the squares of its digits, and repeat the process
Sometimes, we need to make the code simple so that it's easy to read code. We can extract some unchanging stuff and change things as parameters. Defined as a macro, so it's much easier to write.The following examples illustrate some common macro
1. Lazy Loading BasicLazy Loading--also known as deferred loading--is loaded when needed (low efficiency, small memory footprint). The so-called lazy load, write is its getter method . The popular point is that in development, when the application
This article is only my personal in the actual development of the habit of writing, of course, this way is also from a lot of official recommendations, so to a certain extent can be copied to apply. This article will not be updated regularly ~use a
WifiGet WiFi statusWifimanager Wifimanager = (wifimanager) context.getsystemservice (Context.wifi_service);if (Wifimanager! = null) {int wifistate = Wifimanager.getwifistate ();}Attached: WiFi status has the following: (in parentheses for the
Please read first:http://blog.saymagic.cn/2015/02/16/release-library-to-jcenter.htmlThe outermost build.gradle.//top-level build file where can add configuration options common to all sub-projects/modules.Buildscript {repositories {jcenter () Maven {
Ratingbar is a scoring bar control, with the default effect being several green stars, and customizing its style if you want to change it to a different custom picture. The first is the layout file:1 RatingbarAndroid:id= "@+id/app_ratingbar"style= "@
Table layout is represented by Tablelayout, Tablelayout inherited LinearLayout, so his essence is still linearlayout.Table layouts are managed in rows and columns, where you don't need to declare how many rows and columns to use, but instead add
Detailed explanation and use of the service in Android:
Concept:(1). A service can be said to be an activity that runs in the background. It's not a separate process, it just needs to be used by the app to tell it what to do in the background.(2)
The recent lab's Android app requires the ability to send internal mail.White is simply a database of additions and deletions processing.But one of the interesting parts of the middle is getting the list of recipients to handle.When the user logs in
Android Test skill Tree Android Basics
Android Architecture
APK composition Structure
Use of the ADB command
Four components of Android
Life cycle of Activity
...
Preparation of test/development environment
Universal-image-loader's Memory cache policy1. Use only strong reference caching
Lrumemorycache (This class is the default memory cache class for the open source framework, which caches the strong references of bitmap)
2. A cache
The steps to use the heap to monitor the application process using memory are as follows:1. After you start eclipse, switch to the DDMS perspective and confirm that the devices view, the heap view, are open;2. Link the phone to the computer via USB,
OverviewThere are many ways to push messages, and here I have chosen the Aurora Push. This section is divided into the upper and lower parts, first by registering the Aurora Push and using its demo program to see the effect of push, and then step-by-
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