During debugging of Android applications, the android simulator screen is often found.
Most people may use hvga debugging.ProgramThe simulator works normally when the resolution is small.
However, the current mobile phone screen is 800*480.
The system used the gsensor of bosch_bma222 and now requires mma7660. Let's take a look at how to increase the driver and debug process.
1. Modify makefie
First, modify the makefile (kernel/driver/MISC) in the directory where the driver is placed,
Recently, I am working on a flat panel. The back home on the bottom and the status_bar on the battery WiFi cannot be removed after full screen setting. After searching for information, I found a better method. I would like to share it here.Method 1 (
Download programs designed on Android 2.3 run on Android 4.0 and report to Android. OS. networkonmainthreadexception exception. Originally in 4.0, the access network cannot be performed in the main program. There are two solutions, one being added
This compilation process mainly refer to the official documentation (http://source.Android.com/download)
1. install some environments
Sudo apt-Get install build-essential
Sudo apt-Get install make
Sudo apt-Get install gcc
Sudo apt-Get
1, install the Windows environment, and cygwin, download and installation see: http://blog.csdn.net/happyhell/archive/2010/06/29/5702846.aspx
2. Copy the built Android directory to Windows.
3. Specify the SDK version number in the build
AndroidThe code is downloaded from gingerbread 2.3.1. Make directly and an error message is displayed:
You are attempting to build on a 32-bit system.Only 64-bit build environments are supported beyond froyo/2.2
Search for
*Avail: 38 MB + 114 MB in 25 says that the device has 38 MB of completely free (or likely used for unrequired caches) memory, and has another 114 MB of available memory in 25 background processes it can kill at any time.
* Other: 32 MB in 3 says
AndroidThere are four methodsSaveData, which is applicable to different situations. They both have their respective advantages and disadvantages. Therefore, before deciding which method to use, developers should consider whether the current
Recently, the project needs to implement the pull-up function. The first thing that comes with Android is the s0000ingdrawer, which is also implemented. However, the problem is to set the background color, handler and content are two different parts.
Reprinted please indicate the source!
Link: http://blog.csdn.net/zgyulongfei/article/details/7750707
When I was lazy, I used Java to write a simple server. It is good for everyone to understand the principle.
The server has two ports open, one UDP
Public class mainactivity extends activity {// declare the control // path and number of threads private edittext et_url, et_num; // progress bar public static progressbar pb_thread; // display progress operation private textview TV _pb; // The
Recently, a Vertical Slide rod was added to the project. It was originally intended to rewrite the seekbar. Although it was finally achieved, it was not adaptive, so in order to adapt to different devices, the following describes how to use
1. There are two ways to get a video Thumbnail (1) through the content provider (2) create a thumbnail manually
(1) The disadvantage is that you must update the media library to see the thumbnail of the latest video.
/** * @param context *
I have previously written about the horizontalscrollview slide and button event trigger issues, but not all of them. I have been thinking about this issue for the past few days. Today I have a better solution, the final application works well in the
★Potato video API:Get video rankingVideo Search APIHttp://api.tudou.com/v3/gw? Method = item. Search & appkey =★API key applied for at api.tudou.com★& Format = xml & kW =★Keywords★& Pageno =★Page number★& Pagesize =★Number of entries on a single
I recently tried to perform AAC decoding. I checked two methods on the Internet: the first one is FFMPEG. /configure -- list-decoders, you can see the AAC decoder and compile it on x86 to enable the AAC decoder, however, even if -- enable-decoder =
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