Hdpi mainly contains high-resolution images, such as WVGA (480x800) and fwvga (480X854)The mdpi mainly contains medium-resolution images, such as hvga (320x480)Ldpi uses low-resolution images, such as qvga (240x320)
For the Android platform,
The released Android 2.2 attracted the public's attention (froyo ). We can see that the features of Android 2.2 have been greatly improved. Compared with the iPhone, the author believes that android2.2 has defeated the iPhone in the following six
In Android, multimedia files (videos and images) all have thumbnails. In many applications, we need to obtain these thumbnails. For example, if you are recently working on an application similar to an album, you need to scan the image in the album,
Recently, I need to develop some projects related to instant messaging, and spent a few days collecting information about instant messaging.
Finally, openfire is selected as the server, and asmack is used as the android implementation.
1. Only send
In the android painting learning Summary (4) -- animation (I), I have introduced in detail the definition and use of tween animation. Due to limited space, many important aspects are not described, this article makes a complete summary on the one
Hello everyone, I want to share with you some tips on UI design in Android. The main content of this section is: 1. UI design of Android buttons; 2. UI design of Android buttons: the uidesign of listview and gridview.
Button status:
We generally
Android Startup Process
During Android startup, uboot will pass in an init parameter. This init parameter specifies the first program to run during startup. The default value is the INIT program, which is stored in ramdisk. IMG. You can analyze its
To use javamail, you must first download three jar packages and import the project activation. jar additonnal. jar mail. jar import method: Project-> properties-> JAVA build path-> libraries-> Add external jars and then add the network access
Topic:
When the android program is running, the background light remains awake, that is, no black screen.
First run the Code:
Note that you need to add permissions
/***** @ Author zhujianbin **/public class utils {Private Static wakelock Wl;/***
[Java] View plaincopyprint?
Import java. Text. simpledateformat;
Simpledateformat formatter = new simpledateformat ("mm DD, yyyy hh: mm: SS ");
Date curdate = new date (system. currenttimemillis (); // obtain the current
If you do not have eclipse installed with the ADT plug-in, you can use the command line tool to create a project:
Switch directory to Android SDKTools/Directory.
Run:Android list targetsThe console will display a list of available Android
You can enter the android console in two ways:
1. Run the emulator-shell command directly;
2. After starting emulator, run the ADB shell command.
Then we can use some common Linux commands, such as LS and cat. However, the toolbox provided by
In Android, in addition to starting a program from the interface, you can also start the program from the command line, using the command line tool AM.
Enter am -- help in the work area of the ADB Tool
Bytes -----------------------------------------
In Android, the UI is updated asynchronously. We usually use handler to start the thread or sendmessage, so the UI can be updated using service and broadcast. For example: we create a service:
Package COM. andyimport android. app. service; //
In Android applications, loading takes a long time if the listview or gridview contains a large amount of data, especially when there are images in it, in this way, a black screen will appear for a long time, which sometimes gives users the illusion
Download a UC client and change the suffix of the APK to the RAR file in the compressed format. Then, extract all the content. If your development experience is good, you will soon understand it.
1: In fact, UC browser is not very difficult. Many
Recently, the video is decoded to generate YUV data and then JPG images. The previous scheme is YUV-RGB-BMP-JPG, which is very slow. The calculation time is about Ms, multiple clicks on the camera may lead to video screen latency. Therefore, you can
Start your own Android Application
The first parameter is the package name of the application, and the last parameter is the main activity name of the application.
Intent intent = new intent ();
Intent. setcomponent (New componentname ("com.
The audiomanager class is located in the Android. Media package, which provides operations to control the volume and audible mode.
Note: UseContext.getSystemService(Context.AUDIO_SERVICE)To get an instance of this class.
Therefore, we can use the
We all know that the Flash games that are generally downloaded (the one that is played based on the keyboard) are generally controlled by the upper and lower keys. Now I want to use other keys to replace the upper and lower left keys. The
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