Recently, when I was working on a project, I encountered a headache. The problem was that I had to listen to user input from time to time, and most of the user input was completed through a soft keyboard, what should I do if the Android platform
1) first download the tcpdump tool for Android, which can be easily searched online.
2) Put tcpdump in the/data/local/directory of the mobile phone. You can use the 91 mobile assistant to directly import the tcpdum file to the/data/local/directory,
Two solutions:
I,
1. obtain different font sizes based on different resolutions.Create in resIn values-480x320/strings. XML, set 30px AndIn values-800x400/strings. XML, set 30px
The font size of 480x320 and X is 30px and 40px respectively;
Viewflipper is a simple implementation provided by Android, multiple view switching controls, and animation effects can be added.
First, let's take a look at how viewflipper is described in the document.
Simple viewanimator that will animate
1. Structure of the android File System after the android source code is compiled, the system. IMG, ramdisk. IMG, and userdata. IMG image files are obtained. Ramdisk. IMG is the file system of emulator. IMG includes the main packages, libraries,
Oh, we found the Android. inputmethodservice. keyboard class, that is, the android can customize the keyboard class. A simple example is provided for your reference,
First take a look:
Keyboard content layout: keycontent. xml
Android calls call. The SMS function can be called directly or indirectly. You can set the intent attribute to achieve this:
Direct call without user confirmation:
// Call intent = new intent (intent. action_call, Uri. parse ("Tel: 10086");
This article is selected from the android Development Authority guide.
The android SDK provides a default menu creation mechanism. However, although menus created through this mechanism are fully functional, the interface effect is a bit "earthy ".
Android applications frequently process images. Especially when a program loads a large number of images and high-resolution images, oom exceptions are most likely to occur. Below are some of my memory loading methods.
Method 1:
public Bitmap
In the Android system, there are some Initialization Configuration files, such:
/Init. RC
/Default. Prop
/System/build. Prop
The file contains the system attribute values configured for boot,
These property values can be obtained through
In Android development, we can't do without the use of resource files. From drawable to string, to layout, these resources provide great convenience for our development, however, most of the resource directories we usually access are the following
Android ADB "Push Pull" Chinese Support Solution
Under the Windows File (folder) Naming adopts GBK encoding, while in Android UTF-8 encoding, all the push and pull commands using ADB may cause errors due to different encoding methods. To solve this
Careful netizens may find that there are many odex files in the android Rom. What is the role of this odex file relative to the DEX file in the APK? Android123 reminds you that, if you observe carefully, you will find that the file names correspond
More than once, more than one person asked this question. I answered: No. However, we still need to record it.
We may explain the cause from understanding some internal mechanisms of the system for application management.
For Android systems,
During development, we often need to set our applications to full screen. Here I know two methods. One is to set them in code, another way is to change it in the configuration file!
1. Set in the Code:
[Java]
View plaincopy
Package com.
Webview supports JavaScript, but it is only limited to local JS Code. It does not provide recursive download functions as powerful as PC browsers (possibly because of limited storage of mobile phones ).
Therefore, to develop a JS-based anroid
I. Overview: as a public class, activity inherits from contextthemewrapper.
Activity focuses on what users need to do. Almost all activities interact with users. Therefore, the activity uses setcontentview (View) to display interface elements.
Webview can be reused on the android interface. First, write a simple webview implementation.It is very simple and directly added to the default ADT project. Added a webview to access my blog homepage.First, remember to add the Internet access
Sometimes there are some seemingly strange problems. Record it here.
1. Drag the listview to the blacklist
The list is displayed normally, but the entire background turns black as soon as it is dragged. After the drag is stopped, the color changes
I will explain in detail about Java yesterday.JNI-related exception handling and thread security issues are mainly caused by insufficient memory outofmemoryerror and array out-of-bounds exceptions in JNI.Arrayindexoutofboundsexception, array
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.