send messages }}
We can see that the remote communication IPC interface IMessenger contains the send (Message msg) method. In essence, it still obtains the Handler object in MyService to send messages.
IMessenger.aidlThe content is as follows:
package android.os;import android.os.Message;/** @hide */oneway interface IMessenger { void send(in Message msg);}
The above source code is the source code o
;} // obtain the Messenger implementation class MessengerImpl object mMessenger = new MessengerImpl (); return mMessenger ;}} in singleton mode ;}} // We can see that this is actually the AIDL private final class MessengerImpl extends IMessenger of Messenger. stub {public void send (Message msg) {// The send method actually transfers the sendMessage of Handler to send the Message Handler. this. sendMessage (msg );}}......}
As you can see, getIMessenge
of aidl! Bingo! Yes!MessengerThe bottom is actually aidl! JustMessengerIt has been encapsulated for us, and we do not need to care about the specifics of Aidl.IMessenger Source is located in ' \base\core\java\android\os\imessenger.aidl ', you can see it is a aidl file, the following is its source code,Package Android.os;import android.os.message;/** @hide */oneway interface IMessenger { void send (in Me
Figure Description: Moving, backup after the launch of Android virtual machine appears
Solution to the problem of panic:could not open D:\java2\android\android-sdk-windows\.android\avd\test.ini
A few days ago, I am sorting some files, the previously installed on the Android
First, understand the Android operating system
Android was first founded by Andy Robin (Andy Rubin) and was acquired by Google in 2007, and Google has achieved great success with its Android operating system on smartphones.
1, the characteristics of the Android operating system
The
Google recently officially released its Linux2.6 kernel-based mobile operating system--android, the latest SDK is now available for download, and its app development environment is Java.
CharacteristicsProgram Framework reusable and reusable componentsDalvik virtual machines optimized for mobile devicesIntegrated Browser, which is based on open source WebKit engine developmentThe optimized graphics system is provided, which consists of a custom 2D gra
This is my collection of the classic books on Android development, high-definition PDF electronic version, can be downloaded in my Baidu network free of charge, I hope that the need for friends to help. Directory:Android 4 Advanced Programming (full source code included)"Crazy Android Handout""Android App Development (Guo Hongzhi)""
According to authoritative data show: The current most user-focused smartphone operating system is Android mobile operating system, access to the 70%.1, iOS and Aliyun "Cottage Android" is 15.9% and 2.9% respectively. For this is just launched by the vast number of developers love products. I believe that there are many friends have doubts, today I will summarize my experience of
Tags: Java_home Item code advanced swipe enter Eclips EVEL activity
2.1 Google Ecosystem
2.1.1 Android Studio First Experience
2.1.2 Android Studio Configuration
2.2 Android Advanced usage tips
2.2.1 Update SDK
2.2.2 Android Studio Common interface
Android Android-use Eclipse to develop the first android Application, android-android
Open Eclipse and select File-New-Android Application Project
Application Name is our Application Name, which is also the Name we see in the mob
Mobile phone Bluetooth control relay wireless lock Iot Android source code android development Android WIFI control detailed annotation test stability no bug, android Android
I. functions:
1. Connect and disconnect Android WIFI, a
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:
Import all two of the above items into eclipse!!
2. Lead Demo to eclipse
The file encoding for two items was modified
As for the benefits of Android Studio I don't have to say the following two is enough for you to switch to Android Studio:
1, Android Studio is officially designated by Google, the current official website has been removed from the ADT, you can be in the Android Web site to view, currently only
At the end of May this year, Google was completely blocked by the wall, all Google's website can not visit, this time including the android.org,googlesource.com,code.google.com. Android's official resources are inaccessible, and it's certainly difficult to download the Android code.
This article is to solve this problem--to explain how to make download from Github.com/andorid andorid the latest source code. As the saying goes, "to give the
A brief introduction of Android studioThe Android Studio IDE (Android Platform integrated development Environment) was first released by the GOOGLEI/O conference in 2013. It is based on the IntelliJ idea development environment and is designed to replace Eclipse and ADT (the Android Developer Tool) to provide developer
Android UI operations are not thread-safe, and only the main thread can operate the UI. At the same time, the main thread has a certain time limit on UI operations (up to 5 seconds ). To perform some time-consuming operations (such as downloading and opening large files), Android provides some column mechanisms. The articles in the "android basics 02-thread secur
For the development platform, if the data storage has good support, then the development of the application will have a great role in promoting.
In general, there are three ways to store data: One is a file, one is a database, and the other is a network. Where files and databases may be used a little more, the file is easy to use, the program can define its own format; The database used a bit annoying lock some, but it has its advantages, such as in the massive data performance is superior, the
Frame Android Studio Downloads installation and configuration development environment tutorialHttp://www.111cn.net/sj/android/74261.htm
Win7x64 Android Stuido installation and building development environment problem solvingHttp://www.111cn.net/sj/android/74265.htm
Mac Download install
Android Android-build an android development environment, android-android
Android official website address: http://developer.android.com/, download and install AndroidSDK following the steps below:
Download ADT and SDK: http://dev
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.