No need for aidl or complex contentprovider, no need to sharedpreferences or shared storage files!
Just a straightforward messenger, also known as a messenger, allows you to pass message objects in different processes, where you can communicate and pass data across processes by placing the data we need to pass through. Nonsense not much to say, directly on the code.
First is the service side:
publ
IP MessengerDetailed analysis
IP Messenger is a LAN chat and file transmission tool with many advantages,
For example, data communication requires no server establishment, direct communication and data transmission between two computers, and supports transmission of files and directories, which is safe, fast, and convenient, therefore, many companies use it as a department or internal im tool.In terms of program structure, IP
Don't know about Windows Live Messenger yet? You're too old for that. Windows Live Messenger is the previous MSN Messenger. Since version 8.0, it's called Windows Live Messenger. It's still in beta, and it's constantly releasing beta releases. Now let's look at the FAQ and answers from the Windows Live
Disable self-starting MSN Messenger
Maybe you are just like me, and you have already hated the automatic running MSN Messenger. To appease users who are as angry as we are, Microsoft today posted a detailed article in its knowledge base about how to prohibit this software from running. The method is as follows:
Windows Messenger 4.0 and later versions on Wi
First, the Messenger classFunction: Similar to the message class, but is used across processes.Analysis: Its bottom layer is implemented by AIDL, from the construction method can be seenService usagePublic Messenger (Handler target) {Mtarget = Target.getimessenger ();}Client Side usePublic Messenger (IBinder Targer) {Mtarget = IMessenger.Stub.asInterface (target)
The front LocalService primarily provides the same application components to use if you want to support different applications or processes using the service. You can use Messenger. Use Messgener can be used to support interprocess communication without using AIDL.
The following steps explain how Messenger is used:
Define a handler in the service to process requests from the client.
Use this handler to c
From: http://www.cnblogs.com/JeffreyZhao/archive/2007/11/10/add-web-live-messenger-to-your-page.html
Live Messenger dialog box
A chat dialog box is often displayed in the blog of some friends, which allows users who are browsing the site to chat. But in my opinion, this function is just like a chicken-who knows who is browsing and who can chat? However, when I browsed lovecherry's blog today, a Live
Many of the use of Windows NT/2000/XP and other operating systems of friends, recently received inexplicably, automatic pop-up "Messenger Service" window, its contents dazzling, there are illegal advertising, pornography dating, reactionary speech ..., and even the transfer work (Figure 1).
This occurs because the Windows NT/2000/XP operating system automatically starts its own messenger service when it is
If you need your service to communicate with remote processes, you can use a messenger to provide interfaces for your service. This technology can be used to implement inter-process communication (IPC) without using aidl ).
The following is an overview of how to use MESSENGER:
Service implements a handler that receives the callback caused by each call from the client.
Handler is used to create a
Many Windows XP users encounter a pop-up dialog box when surfing the Internet. These so-called "messenger service" will not only interrupt our thinking, but also the content is often some commercial advertisements, which is quite annoying. In fact, in Windows XP, the main function of the "messenger service" is to transmit the Net Send and Alerter service messages between the client and t
The process property of the server-side messengerservice specifies that its processes and mainactivity are not in a process service android:name="com.example.activity.MessengerService" android:process="com.example.activity.remote" > service>Create a messenger in Messengerservice with its underlying binder as the IBinder object returned by the binding service. privatefinalnew
Live Messenger dialog box
A chat dialog box is often displayed in the blog of some friends, which allows users who are browsing the site to chat. But in my opinion, this function is just like a chicken-who knows who is browsing and who can chat? However, when I browsed lovecherry's blog today, a Live Messenger dialog box was displayed on the left side of the bar for chatting, which immediately aroused m
MessengerUsing Messenger, you can pass data between processes, enabling one-to-many processing. Its internal implementation is also based on the Aidl file, this aidl located in: Frameworks/base/core/java/android/os/imessenger.aidl.The service side communicates with the client, mainly in the transmission message to do the processing, lets the Message.replyto point to the client Messenger, but the
I. Introduction to the messenger of communication between Android processes(1) Introduction :usually a talk between the process of communication, we will think of aidl, in fact, Messenger and Aidl function, can carry out inter-process communication. It is a message-based interprocess communication, just like a sub-thread and a UI thread sending a message, isn't it simple to write a aidl file, or is it a
In fact, there are not many Messenger actually used in actual use, but the examiner still wants to examine your basic skills during the interview. Now let's take a look at the use cases of Messenger. If you need your Service to communicate with a remote thread, you can use a Messenger interface for your Service. This technology allows you to perform inter-process
use of Messengermessenger can be translated as a messenger, through which you can pass the message object in different processes, in the message to put the data to be passed, it is easy to achieve the process of data transfer. Messenger is a lightweight IPC scheme that implements the Parcelable interface and the underlying implementation is aidl. This can be seen from the way it is constructed: publicMe
Today's instant messaging software dazzling, we are familiar with nothing more than Tencent's QQ, Microsoft's MSN Messenger and NetEase's bubble, in terms of user volume, the three should be among the top. But Tencent's QQ and NetEase's bubble did not disclose its client-server communication protocol, which makes it difficult for developers to use this huge user group to open up additional service channels. MSN Me
Official explanation:
Http://help.cn.msn.com/kb/kb10010.html
An error 80048820 is reported when you log on to messenger.Error 80048820 due to Internet connection, firewall (a security feature designed to help protect computers from unauthorized external access. It can be a combination of hardware, software, or both), date and time settings, proxy settings, security settings, or SSL security issues and cannot be logged on. The server may be temporarily unavailable. To solve this problem, check
MSN MessengerSolution to login failure
Sorting: ch_builder
I don't know why. Suddenly, one day my MSN Messenger couldn't log in. I heard that MSN China is also being adjusted recently and I didn't care about it at first, but it won't work after a week, ask some friends who often use MSN Messenger. They said that MSN Messenger has been nor
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.