Sort the rules as follows:
(1) several concepts
1,Screen SizeThe size of the screen, that is, the diagonal length (unit: inch-inch)
2. Screen density: screen density, that is, number of pixels per unit length (POTS/inches)
3. Resolution
A problem occurs in the project. It is correct to load data for the first time. When the pull-down refresh and pull-up are loaded, the data will be in disorder and Baidu will get the result, I hope I can help my friends who encounter similar
If a problem occurs in the afternoon, JNI cannot find the class. The solution is as follows:
1. System variable settings:(1) My computer-properties-advanced-Environment VariablesAdd the system variable java_home: D: \ Program Files \ Java \ jdk1.7.0
Sharedpreferences is a way to save data on the Android platform. It can save data for a long time until the software is uninstalled or manually cleared, such as network settings.
KeyCodeAs follows:
Sharedpreferences share = super.
If you are determined to become an android expert, if you are patient, you will be satisfied ".
"Is it easy to do things in the world? For this reason, it is easy for the hard person. If not, it is also difficult for the easy person. Is it easy for
1. When the project contains a large number of images or the picture is too large
Method 1: proportional reduction of images
BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 4
Method 2: Use soft references to
This article is a must-have knowledge for Android Developers. The content is excerpted from the network and is not perfect but useful.1. The problem of Adaptive Background and non-Distortion Making Adaptive Background images is a wide range of
The project must support special fonts. I checked some materials online and shared them with you:
First, you need to download the special font. TTF, which can be searched by yourself;
Create an android project and check the directory structure:
/**
* If WiFi is not enabled, you can still obtain the MAC address, but the IP address must be in the connected status or 0
*
* @ Param Context
*/
PublicStatic void getmacaddress (context ){
String macaddress =Null, IP = NULL;
Wifimanager wifimgr =
This point has been used in recent projects and I have studied it.
1. Register scheme in the activity to be started. The Code is as follows:
Note that both
If you need to reprint it, please indicate the source!
Jiang linuxemacs@gmail.com
For project reasons, we need to build a GDB Based on the MIPs chip. Here we will record the construction process for future use.
I. Objectives
1. gdbserver on MIPS
Today, I have an android project that needs to import an external jar package.
After I imported the jar package, no error was reported, but the error occurred while I was running, finally, it prompts that the class is not found (that is, the class
On the official selenium website, I saw an article about selenium running on android phones, so I tried it myself. Take the android simulator as an example (the operation on the mobile phone will be smoother)
Configuration environment: Android sdk4
Scenario 1: The layout file code is as follows:
Parent ViewAndroid: layout_width = "fill_parent" two child views:
Textview1 Android: layout_weight = "1"
Textview2 Android: layout_weight = "9"
The width ratio is as follows:
Conclusion:
Create boot. img ---- original by jacklce
(This method is suitable for android Developers. For more information, see the source)
1. Copy the packaging tool from out \ host \ linux-x86 \ bin: mkbootfs, mkbootimg
2. Copy the source file ramdisk.
On weekends, you can modify bugs and add features for the last software release.
1. Added multi-language support.
Add the values-zh-rCN directory corresponding to values. The internal xml file is the same as the values file, but the file name 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