Display display = getWindowManager (). getDefaultDisplay (); // obtain the screen width and height.
Window window = getWindow ();
LayoutParams windowLayoutParams = window. getAttributes (); // obtain the current parameter value in the dialog
I launched an android apk application in the android Market and want to run it in the simulator. How? Haha... The procedure is as follows:
(1) run the simulator in eclipse or open AVD Manager to run it.
(2) Find adb.exe, which is
Many people complain that a large number of images are loaded in the listview on android, and other pages are loaded with larger images than those in the listview. A large number of different types of images are combined, and the user experience
I plan to perform android automated testing in the future. Today I found a very good tool. I will study it later:
The download address is as follows:
Http://code.google.com/p/robotium/downloads/list
This is the configuration method:
1.
I. As we all know, Hanlder is a bridge between threads and activities. We will use threads in many applications. Some users may improperly process the threads. When the program ends, the threads will not be destroyed, it is always running in the
Relatively layout is not familiar with Web development. We often use these similar relative la s when using CSS + DIV. When setting the position of a DIV, we often use a DIV as a reference to set the position. If you don't talk about it, you can
The main purpose of a Service is to provide backend service calls. Unlike an Activity, a Service has no interface. Because of this, it does not stop when a user leaves the application interface as an Activity, the Service is always running in the
Use the android. hardware. Camera class to take photos. The procedure is as follows:
A. Get the Camera instance object,
Camera camera = Camera. open ();
Alternatively, Camera camera = Camera. open (int cameraId );
CameraId indicates the
A bug found during the product testing process is that after the tester repeatedly clicks a button and triggers toast, the toast content will always be displayed in the queue and cannot disappear quickly. This may affect your use.
Toast has a
Public static void lengthFilter (final Context context, final EditText editText, final int max_length, final String err_msg ){
InputFilter [] filters = new InputFilter [1];
Filters [0] = new InputFilter. LengthFilter (max_length ){
@
Suppose: Here I have two activities: A and B. When I transfer data from A to B, I use Bundle to encapsulate the data, and then jump from A to B, when B needs to encapsulate the data and send it back to A, it jumps back to. When receiving data in A,
Last time, we made a simple hello world. This time, we wrote a telephone call system. In fact, this call is not really called by our own program, instead, call the system program.
First, create the project Phone and create the required string
FBReaderJ is an open-source reader on Android. FBReaderJ 1 obtains the FBReaderJ source code from the official website. Now FBReaderJ is hosted on github and can be directly downloaded from the following address or synchronized with Git:
Android is essentially a Linux kernel-based system, that is, Android is a Linux operating system. Most of the time, however, they run on ARM-based devices, such as Android phones and tablets. The Android driver is actually a Linux driver. Therefore,
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