How to Write a serious Android music player 2 and android music playerThis article describes how
Interaction with music playback Service
If you have a little experience, you know that you can put operations on the Service for a long time. How can you effectively communicate the interface with the music playback Service? In this chapter, I will give my answer,
Preparations before Android project development (2): android Project Development
Integrate Android into my life!
In the previous article, I introduced some preparations before development. Because the length is too long and it is hard for everyone to watch, all my blogs will not be too long in the future. If it is to
The process priorities in Android are as follows:1. Foreground process: the activity that interacts with the user in the foreground, or the service bound with the foreground activity, these two processes are called foreground processes.2. Visible process: visible but not in the foreground, the user is not clickable, it belongs to the visible process.3. Service process: The process of service services is ope
NDK interacts with C/C ++ through Java's Jni. If it doesn't work with Jni, you can check out what I 've previously compiled. I. Build an NDK Development Environment1. Download the right NDK version of the platform. Download URL:Http://developer.android.com/tools/sdk/ndk/index.htmlFor Windows, you no longer need to download Cygwin. You can download NDK directly and decompress it. 2. NDK-contained libc (C library) headers libm (math library) headers JNI
elements, it also has the main element attribute.You will also encounter another self-closing element where the start and end tags do not exist independently:
"12345" customerid= "a4d45s" />
The "/" symbol at the end of the element represents the end.All of the resource files we use on the Android platform are XML tags, including layout files, drawing elements, data values, and manifest.2.
application interesting
(1) making programs easier to learn
When our users fully understand the situation, they will feel good. We should make our apps easier to learn, and we should make our visual mode or muscle memory easier than other Android apps. For example, the return button is a good shortcut to navigation.
(2) The user is always right
Please be polite and prompt people to make corrections. When
Android dialog box usage (2), android Usage DetailsBlog: http://blog.csdn.net/u012637501/article/details/46003413I. Use PopupWindow to create a dialog box-style windowThe procedure for creating a dialog box style window using PopupWindow is as follows:> call the PopupWindow constructor to create a PopupWindow object;> call showAsDropDown (View v) of PopupWindow t
Animation can also be stored in an XML file, which improves the maintainability of the program. To write an animation in XML, follow these steps:
1. Create a folder named anim under the res folder
2. Create an xml file and add the set tag first. Modify the tag as follows:
Android: interpolator = "@ android: anim/accelerate_interpolator">
3. Add the rotate, alpha,
1. The name of an element XML element corresponds to a Java class, so a Create a LinearLayout view group. When you load a layout resource, the Android system initializes these runtime objects, corresponding to the elements in your layout. XmlThe attributes of the element correspond to a method of a Java class.2. ID attributeEach view object has an associated ID that uniquely identifies it. This ID is refere
Cocos2dx 2.x Android gravity detection rotating screen, cocos2dx android
In the case of charging, when playing with a mobile phone, the screen usually needs a specific rotation direction.
The function is divided into two parts: one is to obtain the desired Angle Based on the mobile phone's gravity direction X, Y, and Z; the other is to set the screen rotation dir
Provide alternative resources
Almost every application should provide alternative resources to support special device configurations. For example, you should include optional trace resources for different screen resolutions and provide optional string resources for different language environments. At runtime, the Android system detects the current device configuration and loads appropriate resources for the application.
To specify a set of optional re
Android: Netease news client slide menu (2), android Netease news
We have already discussed how to achieve this through the third-party open-source library SlideMenu. For details, referAndroid: Netease news Client Side slidesSingle (1)
This feature is implemented through custom View today
The Code is as follows:
SlideMenu. java
MainActivity. java
First of all, if you add Guice and Roboguice libraries to your project.
Download Roboguice and Guice-2.0-no_aop.jar (not guice-3.0), or download
Create a new Android project, such as Guicedemo, the target platform Android1.5 above.
In general, you can add a Lib directory under the project, copy two jar files to the Lib directory, and then pass: Project > Properties > Java build Path > Libraries > Add External J ARs
After adding references to the
-10
Samples-2.1_r01-linux.zip
Samples/Android-7
Samples-2.2_r01-linux.zip
Samples/Android-8
Samples-2.3_r01-linux.zip
Samples/Android-9
If you want to install Google API, address in analysis: http://dl-ssl.google.com/android/repository/addon.xmlDownload the packages you need
applicable to the horizontal screen, but also for the vertical screen;b) drawable-land-hdpi, when the screen is horizontal screen, and is high density, load the resources of this folder;c) drawable-port-hdpi, load the resources in this folder when the screen is vertical and high density. The other same.2) LayoutIn the Res directory, the establishment of the Layout-port and Layout-land two directories, respectively, a vertical screen and two horizonta
Use of Animations in android Development (2)
Use of Animations in android Development (2)
This blog post focuses on the use of animation effects in android development. Unlike the previous blog post, the four animation effects are mainly implemented using xml files, this imp
This article tells you how to use it. In fact, this is not a very difficult framework. The general usage process is as follows:
// Obtain the cache image directory File cacheDir = StorageUtils. getOwnCacheDirectory (activity, "imageloader/Cache"); ImageLoaderConfiguration config = new ImageLoaderConfiguration. builder (activity ). memoryCacheExtraOptions (800,760) // Save the maximum length and width of each cached image. threadPoolSize (3 ). diskCache (new UnlimitedDiscCache (cacheDir) // The
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.