After the android development environment has been set up under fedora14, it is no problem to use the simulator for development. However, the simulator is slow and some functions cannot be implemented, so we want to use a real machine instead. My
In the previous example, we saw a change in the screen direction. In fact, when the screen direction changes, the onConfigurationChanged () event will occur. Although you can change the direction to display the direction to change, however, the
Continue with the previous article. This article describes the transmission of reference data and custom objects.
1. Main Process1. String transmission
A) The upper layer defines an native method and requires a String parameter to return a
I found some materials online.JAVA Image Filters can be used for Java.However, ANDROID does not have AWT, so it cannot be used.
DecompilationHe found that his filter processing is mainly under redwolfama. pictwitter. picprocessing.ConvolveFilter
Sometimes we want to classify on listView, or sometimes we want to display two columns in one row. Sometimes we need three columns of content. How can we achieve this? Here we need to useJava codeClass Section {String caption;Adapter adapter;Section
The event types in android include button events and screen Touch events. Touch events are the basic events of screen Touch events, so it is necessary to have a deep understanding of them.A simple screen Touch action triggers a series of Touch
In the original code, Pclk is set to 8 m, but for 320*480 LCD needs to be increased to about 10 m.Therefore, you can directly modify the two parts in the bootloader and kernel.Lcdc_clock_init (8000000 );Pinfo-& gt; clk_rate = 8000000;
An error
To implement the "Shake" function, it is actually very simple. It is to detect the mobile phone's gravity sensor. The specific implementation code is as follows:
1. Add operation permissions in AndroidManifest. xml
II. Implementation
Compress the attachment http://www.bkjia.com/uploadfile/2011/1009/20111009010550946.rarto tcpdump in the same directory of adb.
1. Use a mobile phone as a wireless route
Connect to wireless androidther, enter the address in the browser,
There are two types of intentions in android: explicit and implicit,
Explicitly requires that you know the package and class of the activated component
For implicit intent, you only need to know the actions and data of the jump activity to activate
Sensor Coordinate System
Generally, the sensor framework uses a standard 3-axis coordinate system to express data values. For most sensors, the coordinate system is defined relative to the screen of the device when the device is kept in the default
If the properties file is read through the stream file, you need to put the file into the assets folder or raw folder. for example, we have a file named test. properties:Java code www.2cto.comProperties pro = new Properties ();InputStream is =
Automatic screen brightness adjustment:It is mainly to separate the LIGHT Sensor from the Sensor analysis, so we can analyze the automatic adjustment of the screen brightness (the mobile phone adjusts itself with the LIGHT intensity, that is, when
After learning about android, I created two projects. Today, when I created a new android project to run the program, the error "No Launcher activity found" is displayed, and the simulator is not running.I checked the Internet and found that the
Have you ever encountered a good app on your mobile phone, but you don't know how to share it with friends? As a programmer, I encountered such a simple problem. I must find a solution. After google and Baidu, I found that all installed apps on
I. MediaPlayer1. Obtain the MediaPlayer instance[Java]MediaPlayer. create (Context context, int resId); // parameter 1: Context object, parameter 2: Music Resource ID, which is generally placed in the raw folder. If there is no raw, create one by
1. setParameters failed solution 2. users who do not need to preview Photos may need to download the compiled ROM and add their own applications to the ROM for Silent Installation, it's shameless to make a profit. Now we want to achieve the function
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