Run the CMD command in windows and the DOS command.1) emulator-avd And8AVD-partition-size 1282) cd ..3) adb root4) adb remout5) then debug the program and run system/etc/hosts pull in file exploer in eclipse.6) Use ultraedit in windows. Do not open
Sometimes our program only provides a service and does not need to display the startup interface (Other interfaces may be started when the program is running). At the same time, we do not need to display the program icon on the main interface,
If you want to customize the UI Based on the screen direction, in addition to anchoring views around the screen (the previous section described "anchoring" view ), A simpler method is to create an independent res/layout folder, which contains the UI
Last week, I made a small function to modify statusbar and display different background colors and icons on the launcher interface and other application interfaces. The first thought was to accept the broadcast started by the system activity for
[Java] @ OverridePublic Object onRetainNonConfigurationInstance (){Final List list1 = list;Return list1;}
The onSaveInstanceState is triggered during horizontal and vertical screen switching of Android, while the onRestoreInstanceState is
In today's society where there are more materials such as Ox hair and more cattle people than data, it is not difficult to use code to make something. If it is a little difficult, just go to various professional forums and various technical groups,
Android enables mp3 player to play music.
Intent it = new Intent (Intent. ACTION_VIEW ); Uri uri = Uri. parse (www.2cto.com ); It. setDataAndType (uri, "audio/mp3 "); StartActivity (it );Uri uri = Uri. withAppendedPath (MediaStore. Audio. Media.
In a recent project, the menu icon was required to be dynamically replaced. Finally, I checked the information and finally got it done:
First, the onCreateOptionsMenu function will only be executed once. If you create a menu, you can only display
Normally, if the Android app encounters an unhandled exception, a dialog box similar to the following will appear, and then force the app to exit:
If you want to change this default behavior, such as displaying a custom dialog box when an
Put XML into the network space --- version. xml. url address should be normal ***/***. apk 5 yuanbao
http://cdn.market.hiapk.com/data/upload//2012/06_27/13/yuanbao.co.
Cc_13.02.apk---------------- MainPackage gognzibai. co. cc;
Import android.
[Java]Package smalt. music. utils; Import android. graphics. Bitmap;Import android. graphics. BitmapFactory;Import android. graphics. BitmapFactory. Options; // Three ways to attach an image:Public class BitmapUntil {// Directly merge the video into
This example describes the cropping function of Canvas.
Canvas provides methods such as ClipPath, ClipRect, and ClipRegion for cropping. Android supports almost any Cropping Area in the current situation through different combinations of Path, Rect,
[Plain] $ Arm-eabi-addr2line.exe -- helpUsage: arm-eabi-addr2line [option (s)] [addr (s)]Convert addresses into line number/file name pairs.If no addresses are specified on the command line, they will be read from stdinThe options are:@ Read
1. Preparations
The email development function on the android platform is not much different from that on java mail. However, using the jar package on the java platform may cause errors. You can download the latest jar package from android-javamail.
① Create a project② Images named a.png---p.png In the res/drawabledirectory③ Modify the main. xml layout and add a GridView and an ImageView.Android: id = "@ + id/widget0"Android: layout_width = "fill_parent"Android: layout_height =
The performance optimization mentioned above is mainly for Java code optimization. This article shares the layout optimization. The layout optimization is based on the following principles:
1. Avoid unnecessary nesting. Do not place a layout in
Environment: When the options in the list are not selected, the button font in the title bar is gray and cannot be clicked. When the options in the list are selected, the button font in the title bar is normal and you can click
Implementation:
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