In-depth analysis of Swift program entry and swift entry1. Why does swift not need main?There is a main function in c/c ++ and other languages. The program starts to execute the program from the main as the starting point, as follows:
int main(int
Android Network reader _ jsoup resolution application, android_jsoup
This is a Web reader that uses jsoup to parse Html content. It was completed in college and extracted content through parsing against the Web page Element Design of CSDN. The core
Activity jump & Bundle transfer data, androidactivity jump
There are two redirect methods for an Activity:
1. startActivity (Intent intent), directly start other activities
btnChange =
Andorid: Custom ViewPager -- the child ViewPager slides directly to the edge and then directly slides the parent ViewPager
In a recent project, we have a requirement to use nested ViewPager in ViewPager to achieve the whole effect. After no
Proguard android Obfuscation
After obfuscation and packaging, it means that the project is coming to an end and the project is going to be launched. However, people are even more annoyed when encountering problems. I also recorded problems caused
Use tcpdump to capture Android network packages and tcpdumpandroid1. packet capture Principle
Tcpdump (which must be run by the Root user) Intercepts and displays the TCP/IP and other packets that have been sent or received by the network to the
Android recording implementation method (the most important is the trial method of MediaRecorder)
package cn.eoe.record;import java.io.File;import java.io.IOException;import android.app.Activity;import android.media.MediaRecorder;import
Android automation test-UIAutomator (3)-Comparison Test
Series Review: this series mainly introduces the use of UiAutomator from the perspective of development, including three in total:
Basic Introduction: Android automated testing-UiAutomator
Android positioning MethodsAndroid positioning Methods
I recently read about android positioning methods, checked a lot of information, conducted relevant experiments, and conducted tests on mobile phones. The following is a summary:
There are three
Android-standard VideoView playback exampleStandard VideoView playback example
InApiDemos in Android SDKProvides the code for standard video playback.VideoViewImplements simple video playback.
The Code is as follows:
public class
Android and design mode-Proxy mode, androidproxy
The Proxy mode is described as follows in Dr. Yan Hong's book JAVA and patterns:
The proxy mode is the structure mode of the object. The proxy mode provides a proxy object for an object and controls
Android Animation details-Frame Animation (Drawable Animation)
Frame Animation is like a gif image. It uses some static images to achieve the animation effect.
In the Android sdkAnimationDrawableIt is specially designed for Frame Animation. Of
Connect mac to android and macandroid
Solution to the problem that the mac system cannot connect to the android mobile phone:
1. Insert a cell phone
2. Find the vendor ID of the android mobile phone:
Run CMD: system_profiler SPUSBDataType on the
Download and compile the CyanogenMod source code and cyanogenmod source code.
CyanogenMod is one of the most popular Android branches in addition to the official Android source code. It is clean, almost similar to native Android, and is convenient
Android Intent and Activity, androidintentIntent can be said to be the soul of Android. When the program jumps and transmits data, it basically depends on Intent. Intent is very important in Android applications. Understanding Intent is very helpful
Implementation of the Countdown function of Android (CountDownTimer)I used to write countdown during programming. However, Android has encapsulated a countdown CountDownTimer, in fact, the creation of background threads and Handler queue are
Android: imitation QQ photo selector (display by album category, select more ),
The purpose of this example is to implement the photo selection function similar to QQ. After selecting a photo, use a page similar to Sina Weibo to display it.
First:
In the Android lock screen or off-screen status, you can quickly press the volume down key twice to implement the capture function (1, implemented at the Framework layer) and android lock screenImplementation idea: WindowManagerService cyclically
Android Fragment in-depth analysisPeople who have had some experience in the interview will have a deep understanding. In each interview, they will generally ask about Fragment. So today I will share Fragment with you separately. how Fragment is
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