Android4.4 introduces a new concept for text messages: default text message application. That is, android users can select a default text message application in the system settings. Only this application can perform basic text message operations on
Today, I used the Chart feature to record the project.
Achartengine is an open-source google project that can download technical documentation, jar packages, and project source code from the https://code.google.com/p/achartengine/
Demo download:
Android source code "application interface" Analysis 2 (PackageManager and PackageManagerService ):
I. PackageManager:
In the previous article, we usedPackageManager'sGetPackageSizeInfo function to obtain detailed information about the application.
When the launcher is used, the user clicks the apk icon and needs to open this apk. There are two ways to start this apk:
First: Know the package name of the apk and its main Activity
// Help private ComponentName help_set; private final static
1. Fragment LifecycleFragment cannot be displayed on the mobile phone separately. It can only be displayed in the Activity. When the Activity is loaded, the onCreate () method is executed for the first time.In one sentence, the lifecycle of Fragment
A LinearLayout has a background image with an ImageButton sub-component, which is rotated 360 degrees clockwise.
MainActivity:
I only started the Activity to display the animation effect, so it was simulated in the oncreate () method. However, the
Camera development: 1. Camera Interface Design: 1. camera interface requirements:
① The camera screen is displayed on a horizontal screen: android: screenOrientation of the activity element in the list file
Attribute specifies the display status,
Demo function: uses the facial recognition provided by android to identify the eye and face position. Click the button to perform face recognition. After that, the image view is displayed.
Part 1: Layout file activity_main.xml
1. Data Interaction Between Fragment and Fragment(1) ask the question: in what scenarios do Fragment and Fragment require data interaction?(2) image description:
Scenario Description:Assume that the Fragment on the left has an input box and a
* Modify the Hosts file
PC Hosts file address: C:/Windows/System32/Drivers/Hosts
File address of the mobile phone Hosts: after adding the address to/system/etc/hosts, remember to add a line feed. It is easy not to take effect without line breaks.
If
Step 1: Create a gesture Library
Use the SDK's own example GestureBuilder to create a gesture Library (location: android-sdk-windows \ samples \ android-8 \ GestureBuilder ). Before using GestureBuilder, You need to restore it to the development
1. Relationship between Process and thread:
The process operating system allocates an execution unit, a pid process id, and a memory space. The memory space between different processes is independent of each other.
In a process, multiple threads can
In application development, you need to obtain the title of the current WebView page, which may be achieved through rewriting the WebChromeClient. onReceivedTitle () method.
As follows:
The Code is as follows:
Public class MainActivity extends
1. Determine through the RunningTaskInfo class (additional permissions required ):
/*** Determine whether the current application is in the foreground or background */public static boolean isApplicationBroughtToBackground (final Context context)
Because of the limited mobile phone traffic, when using Android phones, we should consider for users as much as possible to consume less user traffic, in applications, the display of network images is undoubtedly the most traffic-consuming.
When we develop Android programs, printing logs is very important for us to locate problems in debugging programs. For example, in our eclipse development environment, you can easily view the output log through the Logcat window that comes with the
Note: 1. After android4.0, the Code Cannot uninstall the ui.
2. Think about it. Just get the network image through the url. I just gave it a url and then it gave it to me. Here is a simple implementation method:
Private class DownLoadImage extends
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