From: http://www.cnblogs.com/mcodec/articles/2122675.html
There are two audio output modes in Android, one is to use the audiotrack class output on the Java layer. However, the audio is decoded at the JNI layer. If the audio is sent back to the
In the workspace. Java class implementation, the related methods include:1) computescroll (): overwrites computescroll () of the parent class. The main function is to calculate the displacement of the drag, update the background, and set the screen
I found a problem in android2.2, but I still don't know the cause:
Load a x image on the X Screen
In order to save time for the graph, we put all the image resources under the drawable-hdpi directory. the bitmap loaded by the decoderesource
As the four main components of Android, service is very simple and convenient, that is, no interface activity is required.
If an app needs to do something in the background, such as playing a song, even if the activity is disabled, it is best to
Recently, some netizens often asked some questions about the lgame development example. It seems that the lgame example is not enough to meet the needs of daily development.
In fact, you don't have to worry about the number of lgame examples at all,
Source code and class library is as follows: http://loon-simple.googlecode.com/files/LGame-Android-0.2.5R.rar
Basic components include:
Lgame-Android (LA) is a 2D game rapid development framework that can run on Android and its compatible
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and
Database storage and sharepreferences for data storage
The database uses SQLite, while the latter stores the stored data into an XML file. This file is stored in/data/package name/shared_prefs.
I have a very small example.
Two edittexts, write data
The job is as follows: draw any line 2011-12-1 on the android screen. You can see it on the Internet. For more information, see. modify it.
Package Feng. f121.drawline; // The package name created by myself. Each person has a different
Trism, which sells for $2.99, has sold more than $0.25 million in the app store in the first two months, but has earned only $1046 In the Android Market so far.
Developers from larva labs publicly complained this week about problems in the Android
The previous article analyzes the classic instances of JNI. This article describes how to easily learn JNI data types through examples. All languages have their basic data types. To learn more, you must understand the most basic things. In JNI, we
Just a few days after I started Android, I recently worked on a project and needed to implement the dialog box to automatically disappear after a period of time. After searching for some resources on the Internet and referring to the SDK, I sorted
The video recording function is coming. There are related classes in androidsdk: Android. media. mediarecorder, of course, cannot be implemented during learning because the simulator does not provide necessary hardware facilities. Media can play
You can implement the tab effect in Android by referencing tabhost in the layout file, obtaining the tabhost instance by ID in the activity, or directly inheriting tabactivity, directly obtain the tabhost instance.
The main code of the program is as
One bad effect of gallery menu sliding is that each menu that goes through the middle is selected by default, and the data is loaded so that the switching is not smooth. There is a feeling of kakaka !! In fact, the thread is used to solve this
1) refresh at the Java layer:
If you want to refresh in thread, use postinvalidate. If you want to refresh in timer, you can use handler message to refresh. The ondraw function must be rewritten for specific refresh.
2) refresh in JNI:
Pass the
The context menu is triggered only after long click by default. You can use the following methods to trigger a single click:
Public void oncreatecontextmenu (contextmenu menu, view V, contextmenuinfo menuinfo)
{// Add a menu itemMenu. Add (menu.
Moviguard preparation for release, support RTSP/RTP protocol, mpeg4-sp video encoding, support for real-time video viewing, photo and video, connection point management and other functions. In the future, audio can be expanded to mobile phones, TVs,
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