To save costs and develop apps, Android and iPhone generally use a set of design drawings.
What should I do with adaptation?
Statistics on the android resolution today
Mainly include:
Samsung i9300 Galaxy S3 1280x720 pixels
Samsung Galaxy
Original blog
Part 1 Android thread
Android thread model
Each process in Android has a
Main
"Main thread (also called UI thread. In addition to distributing and processing all events, it is also responsible for calling the lifecycle
Sometimes you want to use a Custom font file in an application.CodeIt can be used as a reference.
1. Put the font file in the assert folder, Which is fonts/xxx. TTF.
2. Use the fontmanager. changefonts () method to change the font in the
Recently, a project imported in Linux to the Windows platform encountered a problem where the layout was originally invisible in main. xml. I tried it andCodeIt is still normal. The running interface of the project in AVD is also displayed as normal.
I have learned a lot about JUnit In the android SDK, but I feel that there have been several problems that have not been solved (I wonder if you feel the same). JUnit testing is automated, there is no need for any operation at all. I have not found
Automatic Test in Android (1)Indicate the source and author's contact information during reprinting.Article Source: http://www.limodev.cn/blogContact information of the author: Li xianjing
In the past few days, we have tested the android
Today, I encountered a problem and found that my application was closed, but the mobile phone was still running. The debugging found that it was related to activitygroup,The main class inherited from the activitygroup class. when calling the finish
From: http://www.cnblogs.com/fly3q/archive/2010/03/24/1693977.html layout_weight is used to assign importance to many views in a linear layout. All views have a layout_weight value. The default value is zero, which means that the size of the view to
Generally, the interface layout in Android is set in XML, that is, the number of elements on the interface cannot be changed in the program,However, you can also dynamically add controls in the program.Import Android. App. activity;Import Android.
The implementation of the new version of Android framework is somewhat different from that of the old version in full screen mode. Here, only the full screen code of the new Android version is provided.
Package pub. Tetris;
Import Android. App.
Android ndk provides a series of tools to help developers quickly develop C (or C ++) dynamic libraries, and can automatically package so and Java applications into APK files. AndroidApplication developers can call C or C ++ local code through ndk.
I Netease blog Original: http://hubingforever.blog.163.com/blog/static/171040579201243071752744/
I. Preface memoryleaktool is a script tool compiled by Robin Hu to monitor memory usage of Android processes. It is short for MlT. Main functions: 1. It
Files stored in RES/RAW are not compiled by the platform, but are used as available raw resources.
It is very easy to read original resources.
First, call context. getresource to obtain the resources reference of the current application
Generally, programs are written under the pressure of the Project Plan. The Code completed at this time can complete the specific business logic, but the performance is not necessarily optimized. Generally, excellent programmers constantly rebuild
Currently, shared functions are often available in both applications and games. Sharing not only shares text, but also shares the screen of an application or game so that images and texts can be combined to attract more users.
To share images,
In the XML layout file, we can set both PX and dp (or DIP ). We usually choose to use DP to ensure the layout of machines with different screen resolutions is consistent. But in the code, what should we do? Many control methods only provide the
This series of articles on application information:
Android basics 15: get Android Application (Package) Information 01-Info class
Android basics 15: get Android app (Package) Information 02-size
Android basics 15: get Android Application (Package)
This series of articles on application information:
Android basics 15: get Android Application (Package) Information 01-Info class
Android basics 15: get Android app (Package) Information 02-size
Android basics 15: get Android Application (Package)
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