In the APK Resource Package
When the screen density is 240, resources that use the hdpi label use the ldpi label when the screen density is 160 and the resources that use the mdpi label use the ldpi label when the screen density is 120. Resources
Memory leakage is also known as "Storage leakage". The space dynamically opened by the dynamic storage allocation function is not released after use. As a result, this memory unit remains occupied. UntilProgramEnd. Memory leakage.
Memory leakage
3 relativelayout
The position of the Child control is determined by the relative position of the sibling control or parent control. The position of viewa is determined relative to viewb. Make sure that B appears before.
Attribute name
Take helloactivity Program For example, we will briefly introduce the framework of Android applications. It is hoped that the reader can write an andorid Application Based on helloactivity. Helloactivity Project Source code In the android directory
1. debugging
Method 1 is displayed in the logcat in ddms or in the showview I mentioned earlier.
Then pass system. Put. println ("test successful! "); This method of adding
Method 2:
Output debugging information: log. D ("debugging
Relativelayout is one of the most common layout methods in actual layout. Relativelayout can be used to set the positions of a view relative to other views. These positions can include the upper, lower, and left views. Therefore, it is more flexible
When an applicationProgramIf there is no information on the front-end interface during execution in the background, the user will not know whether the application is being executed or how the execution progresses, at this time, it is necessary to
In Android development, this situation is often encountered.ProgramWhen running, you can dynamically decide whether to display a widget or layout based on the current conditions. In this case, you can use the inert control viewstub to conveniently
Gallery is the image library control in Android. Let's take a look at the effect first.
Source code download
I. Introduction
Locked in the center to display items in the list horizontally.
Ii. Instances
1. layout File
1. Introduction
Used for data transmission between different activities
2. Important Methods
Clear(): Clear all stored data in this bundle ing.
Clone(): Clone the current bundle
Containskey(String key): returns the value of the specified
Add the root certificate to the ndroid mobile phone In the Android system, the CA certificate file is located at:/system/etc/security/cacerts. BKS. Note: The cnnic ssl certificate does not exist in the official Android 2.2 system. This is because of
Widgets on Android use Java language development, which is much more efficient than W3C Widgets. you can do more to call system APIs, except for the restrictions on the UI, we can consider helping the system improve some appwidgets. android123
The content of this release is in the original Android tutorial of guoshi studio, "big talk enterprise Android development ".ComponentsThis section mainly introduces the administrator of the "robot", the core component of Android.Activity and
description and copyright notice of this tutorial
Guoshi studio is a technical team dedicated to enterprise-level application development on the Android platform. It is committed to the best Android Application in China.ProgramDevelopment
1. There are two ways for Android Process Communication: intent and process service.
(1) steps for implementing remote services:
1) Use the aidl language to define cross-process service interfaces
2) Implement the methods and attributes defined
Android message mechanism (I)
I. Role description
1. loue: A thread can generate a loue object to manage the message queue in this thread ).
2. Handler: You can construct a handler object to communicate with logoff, so as to push new messages
AndroidAchieving special effects on water waves-Optimization
Luo chaohui (http://www.cnblogs.com/kesalin)
This article follows the "signature-non-commercial use-consistency" creation public agreement
In the previous articleArticleWater Wave
This blog post only implements the feature of youdao dictionary and focuses on the interface.
First, you need to obtain the API key of youdao development platform. Click Open link to apply for one.
Use the data interface to obtain
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.