In Android software development, we may often need to play multimedia audio files. mediaplayer is generally used, but this type occupies a large amount of resources and may not be suitable for games and other applications, here, android123 describes
1. the OOM error occurs when an image is displayed every MS in imageview. solution:
Bitmapdrawable = (bitmapdrawable) image. getdrawable ();// If the image has not been recycled, forcibly recycle the image first.If (bitmapdrawable! = NULL &&!
Use the PATH provided by Android to implement image capturing
Override the ontouchevent method and ondraw method of the view. ontouchevent is used to extract the path component. ondraw refreshes the page and overwrites the View classCodeAs follows:
From: http://blog.163.com/lyd-dada/blog/static/45573809201052225236121/
The Android platform is composed of one activity and one or more views. Therefore, when we want to display an interface, we first think of creating an activity and implementing
How to compile Tess in Tess git, But I encountered a problem during the compilation process. Let's talk about my environment first. I used cygwin for ndk development on win7, it's still a little white.
Git clone git: //
1. Broadcast is defined in a separate file
Source code:
public class MessageReceiver extends BroadcastReceiver{@Overridepublic void onReceive(Context context, Intent intent) {// TODO Auto-generated method
Because the project needs to read the text message and MMS data in the mobile phone and does not know how to handle it, this project was originally made by someone else, and then let me modify it. It was all written in Baidu code, when I asked why I
I used to write the tabhost in the bottom column, but I don't know where it is. I used to find and rewrite the tabhost when I wrote a function last time. Now I keep it here for future development ~~
The tabhost definition seems to be strict. I don't
I'm going crazy. I don't understand the network, which makes it very difficult to develop a server-based client. Today, a problem occurs, which makes me helpless. The server side is written with Django, because I am a newbie to Django, the leader
Android SDK is a toolkit provided by Google to develop Android programs on Windows, Linux, and Mac platforms.
Android SDK (android-sdk-linux_x86-1.5_r3) directory structure:
| -- Release_notes.html | -- add-ons | -- readme.txt | '-- google_apis-3
When I was working on a company project this year, I made my own file-related part.
The requirements are as follows:
The default icon is displayed if the image is not displayed. There are two different display methods, one is tile view (tile style,
AndroidControl-based listview
-- Study note 5 (Jin haijian)
Objective: To learn how to use listview
In Android, listview is a commonly used control. According to the List adapter type, the list is divided into three types: arrayadapter,
Below is:
1:
2:
3: (the following part of the message box will not be displayed)
Android does not directly listen to Keyboard Events. To achieve this, you need to write a layout class to inherit linearlayout and override the
In view learning, I will use the previous javame experience for reference. Here I will first make a simple analogy of some classes and methods they use:
Android --> javame
View --> canvas
Canvas --> graphics
Ondraw (canvas) --> paint (Graphics G );
.
A1. Warning: application does not specify an API level requirement!Apidemos] device API version is 3 (Android 1.5)
Q: In androidmanifest. XML, you must specify users SDK
A2: Set an Internet proxy for the simulator
Q: Use emulator-AVD
From: http://dlwt.csdn.net/fd.php? I = 326037831086282 & s = eeb1c29671889674de8258c0f1e29882
Android cache Partition
What means "backup "?Android's backup service allows you to copy your persistent application
Data to remote "Cloud" storage,
I am working on a GoogleMap + GPS application. There was an inexplicable problem that had plagued me for nearly a month before, that is, after the program encountered an exception during GoogleMap initialization, the application went down elegantly,
The android boot process from power onfrom: http://www.androidenea.com/2009/06/android-boot-process-from-power-on.htmlSince mobile platforms and embedded systems has some differences compared to desktop systems in how they initially start up and
In framework-res.apk, frameworks/base/CORE/RES/values/config. xml generates/system/framework/framework-res.apk, where the resource can be used by other parts of the system. For example, config_lowbatterywarninglevel is in config. definition in XML:
Louiswang
Reprinted please indicate the source: http://blog.csdn.net/louiswangbing/article/details/6699526
To sum up the key technologies that android must master or understand:
Android compilation system. This includes how to modify a
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