By default, Android projects in Eclipse use Proguard (http://proguard.sourceforge.net/) to confuse project code files. The usage is simple:1. Add proguard. config = proguard. cfg to the default. properties file.2. Configure the proguard parameter in
Android discussion --- getting the phone screen size
SurfaceView simple example
Go to Android --- UI --- ZoomControls to zoom in and out images
For more information, here is a summary of the operations on the mobile phone screen in android:
1. Get
I believe many of my friends have used this music player on Android phones. I wonder if you have noticed that every day there is a special effect on Mini lyrics. What is the effect? The lyrics are always displayed and can be dragged. Type QQ music,
Create an Android Project named icationicationiconcount.First, modify AndroidManifest. xml and add the permission because we want to read the contact.Modify main. xml as follows. Here we define an ImageView. We have the courage to preview the
Main Structure of sms:_ Id => short message number, for example, 100Thread_id => the dialog number, for example, 100Address => sender address, mobile phone number. For example, + 8613811810000Person => sender. A number is returned, which is the
We all know that the system will call the MediaScanner Service to perform background scanning and index new songs, images, videos, and other information when the SD card is inserted in Android 1.5, if you need to quickly extract images and video
1. when one ActivityA enters another ActivityB, the wait dialog box is displayed, indicating that the second Activity will be entered. When we press the return key, the ActivityB will be returned to ActiviyA, if ActivityA directly creates a
Use gravity Sensor
The gravity sensor provides three dimensional vectors to indicate the direction and weight of gravity. The following code shows how to obtain an instance of a default gravity sensor:
Private SensorManager mSensorManager;
Private
We know that the Android mobile phone operating system uses the Linux kernel, and the highest system permission in Linux is Root, which is similar to the Administrator privilege in Windows, that is, the highest privilege in the operating
Deleting redundant resources can speed up compilation and operation.
This program is modified using http://code.google.com/p/android-unused-resources/to Add the delete function.
Running Method: java-jar android_unused_resources_advance.jar
The gps function provided by android allows you to conveniently obtain location information. Because this is the gps used in the simulator again, the gps location information should be sent through ddms.The main. xml file has only one textview node
Work with attachments
When a user connects a USB attachment to an Android device, the Android system can determine whether your application is interested in the attachment. If you are interested, you can establish a communication with the desired
The general method for devices of different Android versions to correctly obtain the screen resolution when talking about the android screen resolution, we all know, but how to correctly obtain the screen resolution? Does android2.2 \ 2.3 \ 4.0 \ 4.1
The Input Method Editor (IME) is a control that allows users to input text. Android provides an extensible Input Method framework that allows applications to provide users with additional input methods, such as soft keyboard or voice input. Once
Dumpsys: This command prints the current system information. By default, all service information is printed. You can add the activity parameter after the command to print only activity-related information. SurfaceFlinger, accessibility, account,
TextView requires the following key points to implement text scrolling: 1. The text length is longer than the display range: android: singleLine = "true"; 2. You can set the scrolling or display style: android: ellipsize = "marquee"; 3. The TextView
1. simulator information Android simulator mobile phone color depth is 16 bit, that is, R/G/B = 5/6/5. Therefore, some special processing is required to obtain the screen image. We can log on to the Android simulator using adb. First, dump
When constructing an Intent object, you must specify the operation to be triggered. The Android system defines several operations, including ACTION_SEND. As you guessed, this operation specifies that an Intent object needs an Activity to send data
After setting up your application to work with LocationManager, you can begin to obtain location updates.
Set Up the Location ListenerThe LocationManager class exposes a number of methods for applications to receive location updates. in its simplest
The following code can be used to implement
[Java]Public void moveToGooglePlay () throws Exception {Intent I = new Intent ("com. google. android. finsky. VIEW_MY_DOWNLOADS ");I. setComponent (new ComponentName ("com. android. vending", "com.
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.