Reprint Please specify source: http://blog.csdn.net/zhaokaiqiang1992Today, an open blog, found a friend sent me a private message, ask the following questions, so close this article, for its doubts.From this friend's question, we need to understand the following questions, in order to give him a good answer:(1) How can I get information about all the songs in my phone?(2) When the song file changes, such as adding and deleting operations, how to update
Android platform Project Creation
1. Android SDK + ndk Installation
1) install Java JDK. (If you have already installed JDK, skip this step)
Go to: http://www.oracle.com/technetwork/java/javase/downloads/index.html or click Download. For example
Select JDK download (JRE is not required for Android Development)
For 32-bit Windows
path under HelloWorld. Then select the project and select Run as > Android application.
If you have a compile error message that does not recognize COCOS2DX, you can choose Properties > Java Build path > Link Source and select E:\cocos2d-x\cocos2d-2.0-x-2.0.4\cocos2dx\ PLATFORM\ANDROID\JAVA\SRC path, name does not conflict with SRC.
If the operation succeeds, the HelloWorld interface pops up. I have be
installation, there is an item in the system settings to check whether an unknown source is installed. When the software is updated, check this option. If this option is checked, only the installer provided by Market source is allowed to be installed. If no setup is checked, the system will prompt the user to set the installation. If you select the setup, the installation interface cannot be returned after the setup is completed; if you choose to cancel, the installation program will be release
Android provides a tool class: Asynctask, which makes it easier to create long-running tasks that need to interact with the user interface. Asynctask is more lightweight than handler, and is suitable for simple asynchronous processing without the need for threading and handter. Asynctask is an abstract class. Asynctask defines three types of generic type params,progress and result:The params input parameter that initiates the task execution, such as t
The following is an Android version and API of the corresponding relationship icon, easy to review, will continue to update
API level
Android version number
Android version Name
Corresponding Support Packages
api Level 1:
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xmlFailed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, Reason:peer not authenticated Fetched add-ons List successfullyFetching Url:https://dl-ssl.google.com/android/repository/repository-7.xmlFailed to fetch URL https://
1. Configuring the Java EnvironmentDownload on the Sun website, unzip it into/usr/java, and configure the environment variables such as Vi/etc/profile to add the following configuration at the bottom (Note: Add environment variables, which are added at the bottom of the file) java_home=/usr/java/jdk1.7.0_80path= $JAVA _home/bin: $PATHCLASSPATH =.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/ Tools.jarexport java_homeexport pathexport CLASSPATH perform source/etc/profile
Original article: http://blog.csdn.net/zjujoe/article/details/6251747
Android OTA Update 5: Updater
Author: Song Lixin
Email: zjujoe@yahoo.comPreface
It can be said that all the sections of the OTA update code analyzed above are on the stage, and the main character is now on the stage, it is Updater. google's code architecture is well designed, and each part shou
the view that is displayed on the screen, and can set the slide, load the view forward and reverse need to cache the number of view to load the view in advance, so that the user experience betterTo achieve goal two, enable waterfall to implement a ListView-like Notifydatasetchange () method, so that after the call to Notifydatasetchange () The ListView will check whether the original view is updated, If there is an update,
first choice, see: Parsing HTML data in Java (using a third-party library Jsoup)I don't repeat it here.Update cycle for desktop widgets (widgets):When you create a desktop part Androidstudio automatically generates an XML configuration file that defines some of the properties of the part12provider3Xmlns:android= "Http://schemas.android.com/apk/res/android"4Android:configure= "Xdu.hwding.aeolosxdu.NewAppWidgetConfigureActivity"5android:initialkeyguard
Recently, I want to see the JNI of Android and I don't want to switch back to Linux. So I have to choose windows + cygwin + ndk,
When you start to install the cygwin environment, you generally do not know how to install it. Even after installation, you will find that many packages do not exist ,,,
It seems that all the packages in the devel category need to be installed on the Internet ,,
Fortunately, I read an article on the Internet to install and
In the Android JB version, the System/usr/share/zoneinfo directory Zoneinfo related 3 files are data files that are used to store time zone information for each country and region city. Since the time zone information in each country will change, for example, June 13, 2014, Russia announced that the national time zone after October 26, 2014 after one hour, such as Moscow before is gmt+4, modified is gmt+3, but the file in
Go from the first line of code-androidAndroid is not allowed to perform UI operations on child threads. The asynchronous message processing mechanism provided by Android is required to perform time-consuming operations on the child threads and then update the corresponding UI controls based on the results of the task execution.The code is as follows:1 Public classMainactivityextendsActivityImplementsOnclic
The friendly visual perception and stable and error-free performance come from our pursuit of aesthetics and comprehensive consideration. I have always enjoyed it from a technical point of view.This article is a must-have knowledge for android Developers. It is specially compiled and summarized for everyone. It is not perfect but useful.
This article is about 《Android Learning Series (2) -- download in the
When you get to this article, you must have encountered the problem of not finding the latest photos when you need to use a local album in the Android4.4 version. Before Android4.4 in the need to obtain the phone local picture information, only need to send a broadcast update album information, but the system updated to 4.4 after the broadcast is invalid and error.The broadcast is as follows:Sendbroadcast (New Intent (intent.action_media_mounted, Uri.
In Android, it is not safe to update UI controls in a non-main thread, and the app will be crash directly at run time, so when we need to update UI controls in a non-main thread, we need to use handler and message to implementDemo, use to a button and a TextView, click the button to change the content of TextView, button click Time to create a new process, the UI
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.