calling the Looper loop () method, it enters an infinite loop, and then whenever a message is found in MessageQueue, it is taken out and passed to Handler in the Handlemessage () method. There will only be one Looper object in each thread.After understanding the basic concepts of message, Handler, MessageQueue, and Looper, let's comb through the entire process of asynchronous message processing. You first need to create a Handler object in the main thread and override the Handlemessage () metho
Android Development EnvironmentLatest environment configuration (ECLIPse sdk + Android SDK + ADT)
In the past few days, I have tried Android coverage and aspect tests,
I found that the old SDK could not meet the current needs
Android Bundle transfers ArrayList
Eg. Pass the ArrayList
1. Define an object as Parcelable
Public class Group implements Parcelable {}
In:
Bundle B = new Bundle (); B. putParcelableArrayList ("list", groups );
Out:
ArrayList
2. Define the object as the Serializable type
Public class Group imp
AOSP on MAKO (swipe Android 4.4 source bundle on Nexus 4-download/configure/compile/Brush)Special thanks to Google official documents and AOSP Open sourceReference Links:https://source.android.com/source/building-devices.html (official source brush device)Https://developers.google.com/android/nexus/drivers#makokrt16s (Hardware driver package, such as just run the
1. Introduce
For beginners The data transmission between different activity of Android is always a difficult problem, the main solution is to use bundle to transmit data, one is to use sharedpreferences. The difference between the two, generally speaking, sharedpreferences is used to store lightweight data, stored in XML, and can be persisted. Anti-bundle can tr
Just as DOTNET development requires msdn and Java development requires JDK documentation, it is best to have corresponding help documentation before Android development.
In fact, the android SDK itself contains a lot of development help documentation (English version ). The procedure is as follows:
1. Open the SDK to
A few days ago, my colleague asked me how the Eclipse Android SDK could not be updated.The update interface is displayed (MIRRORS.NEUSOFT.EDU.CN:80), but cannot be updated.The problem is described as follows:URL not Found:f:\android\android-sdk\temp\samples-19_r05.zip (Acces
Cause: After updating ADT and other support libraries in Sdksdk Manager, eclipse error: This Android SDK requires Android Developer Toolkit version 23.1 errors. But SDKSDK manager clearly shows that 23.1 of ADT is already installed, which is strange.Workaround: Help, Install New software, ADD->http://dl-ssl.google.com/android
Solve the problem of This Android sdk requires Android Developer Toolkit version 23.1 After updating the file in SDK manager,
Cause: After the adt and its supporting libraries are updated in sdksdk manager, eclipse reports an error: This Android
Cause: After updating ADT and its supporting libraries in Sdksdk Manager, eclipse error: This Android SDK requires Android Developer Toolkit version 23.1 errors. But SDKSDK manager clearly shows that 23.1 of ADT is already installed, which is strange.。Workaround: Help,Install New software, ADD->http://dl-ssl.google.com/androi
In Eclipse, open the Andoirmanifest.xml file in the project root directory to find the following ApplicationAndroid:allowbackup= "true"Android:icon= "@drawable/ic_launcher"Android:label= "@string/app_name"Android:theme= "@style/apptheme"android:debuggable= "true"> ActivityAndroid:name= "Com.demo.firstapp.MainActivity"Android:label= "@string/app_name" > Intent-filter> ActionAndroid:name= "Android.intent.action.MAIN" /> categoryAndroid:name= "Andr
Android learning-uses-sdk tag details, androiduses-sdk1 Preface
We all know that the Android version is constantly being iterated, and each version adds different new features. As the number of Android users increases, Android Developers must be familiar with the features of
During the process of Android development, the process encounters data transfer between components and processes, and there are many kinds of data transfer, which is very convenient to use bundles.Bundles can pass a variety of data, which is a map-like key-value data structureThe simple invocation is shown belowBundle Bundle=new Bundle (); bundle.put*** (Key,valu
The Android use task management activity is a collection of activities that are stored in the return stack (back stack);The system always shows the top of the stack activity to the user;Start new activity--new activity into the stackPress the back key or call finish () to stack top active outFour states of the active life cycle:1. Operating status: At the top of the stack2. Paused state: Not at the top of the stack, but still visible3. Stop state: Not
1. Download the Extract SDK
Download the Weibo Android SDK Pack first:
Open URL: https://github.com/sinaweibosdk/weibo_android_sdk
Download the SDK to the local, unpacked directory structure:
Click to enter the "DEMO-SRC" directory, the structure is as follows:
Im
1. Open the Run Android SDK Manager, Tool menu, select Options, open the Settings menu, tick "force https://...sources to be fetched using http://...", Then click Close, such as:2, set the Hostes file can be normal access to the computer Google Download CenterOpen the C:\Windows\System32\drivers\etc folder, double-click the Hosts file, select Open with Notepad, and add the following code to the Hosts file.7
Android payment SDK development, android payment sdk
I. Preparations
1. Download the development platform and SDK
Open Platform
Https://open.weixin.qq.com
Download SDK
Download payment Demo
Http://pay.weixin.qq.com/wiki/doc/api/ap
Android SDK Manager cannot obtain the SDK list.
1. Open the running Android SDK Manager, Tool menu, select Options, open the settings menu, check the "Force https://...sources to be fetched using http ://... ", and click Close to Close, for example:
2. Set the hostes file to
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.