In game development, I learned from materials and books that two formats of playing audio can be used in our game development: mediaplayer and soundpool!
PS: Of course, there is another jetplayer, but the format of the file to be played is quite
Http://blog.csdn.net/thl789/article/details/7583352
2012-05-19
This article is an analysis and induction by the author, and is presented with a UML diagram (class digoal/sequence digoal. Although it comes from the analysis of the android
From: http://www.apkbus.com/forum.php? MoD = viewthread & tid = 898.On the simulatorGalleryWhen the image is placedJava. Lang. outofmemoryerror: bitmap size exceeds VM budgetException: The image size exceeds the RAM
The following figure shows the architecture of Android audio.
The detailed call path is as follows:
1. Audio PlaybackSample CodeMediaplayer MP = new mediaplayer ();MP. setdatasource (path_to_file );MP. Prepare ();MP. Start ();
1.1 mediaplayer MP
Due to the special nature of Android systems, the installed software is installed in the memory by default, so as users install more and more software, the memory available for running programs is getting smaller and smaller, this requires that we
The template method mode is one of the most common patterns in the gof design mode. In many popular frameworks (such as spring and struts), we can see the wide application of the template method pattern. The template method pattern is mainly used in
Telephonymanager is a telephone function-related class in Android, which defines many constants.To obtain the following information, you must specify the permission in androidmanifest. xml.
I. Data Connection statusGet data connection status: int
1. Android-universal-image-loader
Https://github.com/nostra13/Android-Universal-Image-Loader
It is recommended to avoid OOM of images to a large extent.
2. afinal
Https://github.com/yangfuhai/afinal
I personally think that there are too many
Share common items in webview
To load a page with webview, just webview. loadurl ("http://m.baidu.com"); of course don't forget to add network Permissions
Click the hyperlink in the webpage. multiple browsers will pop up, but to open it in our
In recent work, we need to implement the small wallpaper function and make the code into a demo.
The zip format is not used for skin replacement, because only an image background is replaced.
1. Put the three images into drawable-hdpi. I put the
1. re-write the following method in service. This method has three return values. start_sticky indicates that the service is automatically overwritten after it is killed.@ OverridePublic int onstartcommand (intent, int flags, int startid ){Return
Public class contracttest extends activity {
Private Static final string tag = "u0fly contracttest ==> ";
Private Static final int pick_contact = 3;
@ Override
Public void oncreate (bundle savedinstancestate ){
Super. oncreate
Android launcher widget Configuration
the first screen is determined by the number of screens. Screen [0] indicates the first screen.
second screen
Here is a widget. Its attributes include package name, class name, screen ID (the second screen
The principle of lyrics synchronization is actually very simple:
The display of the lyrics is a thread. During music playback, a thread synchronizes the display progress of the lyrics with the playback progress.
The standard lyrics of the network
/** Copyright (c) 2011 the rexsee open source project** Licensed under the rexsee license, version 1.0 (the "License ");* You may not use this file before t in compliance with the license.* You may obtain a copy of the license**
In order to avoid detours and to communicate with each other, you can meet more friends! I am posting the code of the one-click lock screen program on the Android mobile phone and the precautions,
The following uses my project as an example to
The first method is simple, but it needs to be compiled using make in the environment of the Android system source code:
1. Add the manifest node in androidmanifest. xml of the application
Android: shareduserid = "android. uid. System.
2. Modify the
Document directory
New in ICS: keychain
Accessing System key store Credentials
Unifying key store access in ICS posted by Tim Bray on 13 March 2012at9: 15 am
[This post is a group effort by Tony Chan, Fred Chung, Brian Carlstrom, and Kenny root.-
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