The front LocalService primarily provides the same application components to use if you want to support different apps or processes using the service. can be via Messenger. Using Messgener can be used to support interprocess communication without using AIDL.The following steps explain how to use Messenger:
Define a handler in the
Users who know the computer know that in Windows XP, the Messenger service is the "messenger" in the server that transmits the net send and alerter (alarms) between the client and the server. Let's look at how the WinXP system uses the Messenger service to send information o
Two-way communication between processes through Messenger and Service in Android
The Service and its caller in Android can be in the same App or in different apps. If the Service is in App1 and the client that calls the Service is in App2, we can use the
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
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:
Serv
Visual|window now have a lot of network management software has the network information real-time transmission function, although some network communication software function is quite powerful, some software not only can transmit the text information, but also can transmit the binary file and so on. But they all have an insurmountable disadvantage, that is, distribution is more difficult, both computers need to install communication software client and server software, and only if both sides ope
Currently, many network management software are capable of transmitting information on the network in real time. Although some network communication software are powerful, some software can not only transmit text information, but also binary files. However, they all have an insurmountable disadvantage, that is, distribution is difficult. Both Computers of information transmission must install the client and server software of the communication software, information can be transmitted only when t
Service Use binding:There are two messengers that define a service side, Smessenger = new Messenger (new Handler () {});Get the client's message in this messenger, get the messenger Cmessenger of the client in the received message,Sending a message to a client is a message s
If you need to communicate between different processes, you can use Messenger in the service to implement communication in the process.
In this way, the service needs to define a handler object (responsible for responding to the message sent by the client).
Messenger can share the client with a IBinder object, and th
Ideas:(The following service-side referred to as the server, access to the service-side referred to as the client)1. the message is communicated between the service process and the client process, so the server must have a handler object to handle the received Message object.2. The Messenger object used by the client t
The messenger service is a typeCommunicationService, through which we canQQSame as real-time communication,QQThe difference is that the messenger service does not need to own a number. It only needs to know the IP address of the other party-if it is in the LAN, it only needs to know the computer name of the other party
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:
Se
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
Android uses Messenger for Service IPC communication analysis, androidipc
If you want to perform IPC communication, write an AIDL interface and a Service subclass. Then, implement the AIDL interface and return it to the Activity interface layer as an IBinder.
If you do not want to write the AIDL interface file, but want to communicate with the
Http://ike.126.com
three. The environment in which the program is designed , debugged, and run in this article:(1). Microsoft Windows 2000 Server Edition.(2). Visual Studio. NET 2003 Enterprise build,. NET FrameWork SDK 1.1 version number 4322.
Four. Visual C # through the history of services to achieve network information transmission of the specific steps:The following are the steps of Visual C # to realize the network information transmission through the
How to use the Messenger service to send information under the WinXP system:
1, click Start, Run, and then enter CMD back carriage;
2, input net start Messenger after return, you can open Messenger service;
3. In the Command box, enter net view to view the c
1, the Messenger service was not found in the WIN7 system. Because Messenger was removed from Windows 7/server R2.2 and in the XP system, the Messenger service is turned on to send itself a message, format: NET send 192.168.1.101 Hello, which net send is followed by the IP a
Service interacts with the activity in a variety of ways, and here is the use of Messenger to achieve the interaction between the two.
Service procedure:
public class Messengerservice extends Service {
final messenger Mmessenger = new
The service interacts with the activity in a variety of ways, where Messenger is used to achieve the interaction between the two.Service Program Public class messengerservice extends Service { FinalMessenger Mmessenger =NewMessenger (NewIncominghandler ()); @Override PublicIBinder Onbind (Intent Intent) {returnMmessenger.getbinder (); } @SuppressLint ("Handle
Recently due to work needs, has been studying instant messaging, occasionally on the Internet to see an introduction to send similar QQ dynamic expression of the article, feel very good, so through my finishing and improve, made a demo, for everyone to study, interface and function as follows:The message received is that after they send the message to simulate the other side of the message has reached the effect, the specific download demo research, t
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.