1. Open the command window and click "start" ---> "run" ----> Enter cmd and press Enter.
21. Enter the directory of Android SDK 1.5 and enter the following command line:Mksdcard 100 m d:/sdcardxy. img
M indicates the size of the sdcard, and
I want to use the Android mobile phone to scan QR code and bar code. I went online to gogole and found an open-source library zxing, which can fully implement the functions I needed.
After checking out SVN, it's really big (Android version) and has
Public void myfunction {
Httpclient = new defaulthttpclient ();
// Your url
Httppost = new httppost ("http://www.winu.cn/post_datas.php ");
Try {
List namevaluepairs = new arraylist (2 );
// Your data
Namevaluepairs. Add (New
Sometimes, our programs need to provide options for users to customize their own use styles. For example, you may allow users to automatically save logon information, set the page refresh time, and so on. On the Android platform, we can use the
On my device, the default preference name is net. Manoel. usingpreferences_preferences.xml. This name uses the package name as the prefix. However, defining a special name for a preference is also very helpful. Follow the steps below.
public class
Source: http://blog.sina.com.cn/s/blog_9c153bc60101a0aq.html
Explanation: Bundle class is used to carry data. It is similar to map and is used to store values in the form of key-Value Name-value pairs. Compared with map, it provides various common
Autocompletetextview:
An editable text view that shows completion suggestions automatically while the user is typing. the list of suggestions is displayed in a drop down menu from which the user can choose an item to replace the content of the edit
1. image loading method to help users load images/**** Load local Images* @ Param context: Main running function instance* @ Param bitadress: Specifies the image address, which generally points to the drawable directory under R.* @ Return*/Public
1. Start emulator (simulator)Enter emulator in DOS and press enter to start emulator, provided that you add the tools directory of the android SDK to the environment variable; otherwise, you must first enter the tools directory of the android SDK,
In traditional UI development, if the background size is different, you generally need to create an image for each size, which is particularly evident in the button. Of course, we can also make a small horizontal duplicate or vertical painting. In
Enter emulator-help in the command line to display all commands supported by emulator.
Android emulator usage:
Emulator [Options] [-qemu ARGs]
Options:-Sysdir Search System. img in the directory-System reads the system. imgfile -Datadir write
In Android, We can scroll the elements in both horizontal and vertical format. To scroll in vertical we can use scrollview, to scroll in horizontal format we need to use horizontalscrollview.Example for horizontalscrollview :-
01
Many netizens do not understand how to capture the back key event on the Android platform. The back key is the back key on the mobile phone. If the general software does not capture the relevant information, your program may be switched to the
Based on the official Android doc, we try to describe the android multi-screen adaptation technology in a concise way.
Screen Size)Physical size of the diagonal line of the screen. Android divides all screen sizes into four categories: small,
Mainactivity is as follows:
Package CN. test; import android. OS. bundle; import android. app. activity;/*** demo Description: * in the resource file strings. use a placeholder * in a string in XML and replace it with */public class mainactivity
Http://www.cnblogs.com/salam/archive/2010/11/30/1892143.html
During development, full screen display, custom titles (using buttons and other controls), and other requirements are often required. Today we will talk about how to control the form
Http://hi.baidu.com/xmjmcai/blog/item/f22a468b1400ae8fa4c272a9.html
Http://hi.baidu.com/xmjmcai/blog/item/f22a468b1400ae8fa4c272a9.html
1. Menu type
1) optionsmenu selection menuThis is the most common menu for applications. The menu that
Http://blog.sina.com.cn/s/blog_3f8c71da0100spad.html
Android) on-off animation production principle
Boot animation file: bootanimation.zip
First, you must understand that android Android animation consists of a series of continuous PNG
When there was no MMC or emmc at first, Android basically used nand, onenand, nor, and ECC nor as storage devices, and MTD (memory technology devices) could be operated directly on these original devices. After the android machine is started, run
Some Android projects are extended by functions in the same basic Android version, but it is too troublesome to create a project and copy a file and a file, sometimes there are some strange issues
Therefore, the best way is to extend functions
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