. Other classes are required. There are two methods: Messenger and aidl.
1. Messenger, a Chinese translation of "Messenger", is responsible for sending information, which can be performed across processes,
Messenger has two constructors:
A. Public Messenger (handler target)
Some time ago I had an idea to combine things that I felt interesting and convenient to develop at ordinary times and build a framework, which will make development more handy, unfortunately, as more things are added to it, they become more and more aware that this may not be what developers need, because it is too complicated. Yes, as a framework, it was just a little better. Later I got busy with my work, and I got stuck. When I went on a business trip to Guangzhou over the past few days and h
Introduction to MSN Messenger (Windows Live Messenger)
With MSN Messenger, you can chat online with your friends, family, or colleagues in real time with text, voice, mobile phone, and even video conversations. You can express yourself through winks and animated pictures, or share photos, files, searches, and more instantly. You can also chat with your contacts
Common windows running command gpedit. msc ----- Group Policy
Sndrec32 ------- Recorder
NSLookup ------- IP address Detector
Explorer ------- open the Resource Manager
Logoff --------- logout command
Tsshutdn ------- 60 seconds countdown shutdown command
Lusrmgr. msc ---- local users and groups
Services. msc --- local service settings
Oobe/msobe/A ---- check whether XP is activated
Notepad -------- open notepad
Cleanmgr ------- garbage collection
Net start m
Name ClassName, IBinder service) {//already bound LocalService, strongly IBinder object, calling method to get LocalService object Localbinde
R binder = (localbinder) service;
Mservice = Binder.getservice ();
Mbound = true;
@Override public void onservicedisconnected (ComponentName arg0) {mbound = false;
}
};
}
This is where the LocalService object is obtained by IBinder, and then the public method is invoked.
Using Messeng
Let Windows Messenger no longer start automatically
If you don't use Windows Messenger very often, you can completely remove the software from the startup list and let it stop following the system. Open Registry Editor, locate [Hkey_current_user/software/microsoft/windows/currentversion/run], and delete msmsgs in the right pane.
Small Tips
You can also use other methods to turn off Windows
Profile
Multi-process concepts and common considerations for multiple processes
IPC Basics: Android Serialization and binder
Several common ways of communicating across processes: Bundles pass data through intent, file sharing, ContentProvider, Binder-based aidl and Messenger, and sockets.
Binder Connection Pool
Advantages and disadvantages of various inter-process communication modes and their application scenarios
IPC i
mem.exe> d: a.txt in the command prompt to open the dashboard a.txt, which is the memory usage. Of course, you can decide which disk or file name you want .)
Mplayer2-simple widnows media player
Mspaint-graphic Board
Mplayer2-Media Player
Magnify-magnifiers
Mmc --- open the Console
Mobsync -- synchronization command
Notepad -- open notepad
Net start messenger-start the messenger Service
Net stop
list of system services and cannot modify the properties of the service, you cannot start the service without modifying the service properties. Open Registry Editor, locate the "Hkey_ local_machine\system\currentcontrolset\services" item in turn, and each subkey under it is the corresponding "service" in the system, such as the "Messenger" service corresponding subkey is " Messenger ", but some services th
These days, constantly have not too familiar with the computer friend asked me: "is not MSN Chat content is very easy to peek AH?" "They are worried about the problem mainly from the MSN sniffer such as" peeping "tool. Not only that, if you do not know enough about the local area network, think that only open "Network Neighborhood" access to other people's shared folders, then there will be more risk!
LAN, you still dare to chat?!
Lan the most famous eavesdropping tool, is the MSN sniffer, a s
methods when creating conn,
When establishing a connection: instantiate myInterface to be the same as Stub. asInterface (iBinder). The value of the disconnected connection is null. The third parameter is BIND_AUTO_CREATE.3. Since myInterface has been instantiated, you can call the method in it to process the returned data and load it to the ListView.4. Unbind
3. MessengerServer:1. Custom Service class inherits Service2. initialize the declaration of messeng
, call StartService () to communicate,At the same time, let intent carry a set of key-value pairs of data to match the service side.Activity: private void Startmusicservice (String option,string path) {Intent Intentservice = new Intent (Mainactivity.this, Musicservice.class); Intentservice.putextra ("option", option); Intentservice.putextra ("Messenger", new Messenger (handler));
ServiceConnection will be leaked. this.unbindService(mSc); }}
Note that you need to unbind the service in onstop; otherwise, memory leakage may occur.
2. Let's look at the problem of communication with the service in another process (cross-process communication !).
How can I run servcie in another process? Configure attributes in manifest.
Android: Process = ": Remote" indicates that the service runs in different processes of the same application.
The client can use
MSN Messenger Service Set instant messaging, Internet telephony, automatic check mail and other functions in one, very popular with the "Network Worm" favorite, but you know, the MSN Messenger Service can not only log on to MSN Messenger Server, You can also log on to the Exchange server in your local area network! You can enjoy the power of the MSN
(mBound) {unbindService (mConnection); mBound = false;}/** the user clicks the button, read the random number */public void onButtonClick (View v) {if (mBound) {// use the Service object to read the random number int num = mService. getRandomNumber (); Toast. makeText (this, "number:" + num, Toast. LENGTH_SHORT ). show () ;}/ ** fixed ServiceConnection, used to bind */private ServiceConnection mConnection = new ServiceConnection () {@ Override public void onServiceConnected (ComponentName class
) {unbindService (mConnection); mBound = false;}/** the user clicks the button, read the random number */public void onButtonClick (View v) {if (mBound) {// use the Service object to read the random number int num = mService. getRandomNumber (); Toast. makeText (this, "number:" + num, Toast. LENGTH_SHORT ). show () ;}/ ** fixed ServiceConnection, used to bind */private ServiceConnection mConnection = new ServiceConnection () {@ Override public void onServiceConnected (ComponentName className, IB
I saw some dating websites such as facebook, campus, and linkedin over the past two days. When they invite netizens, they can directly import the homtmail friends list.
Today, I also studied how to implement the basic functions. The front-end can call AJAX to obtain the data.
I can directly output these friends' email addresses and names.
/// Create a friend name and email address
Public class FriendInfo{Private string username;Private string email;Public FriendInfo (string username, string emai
The following content is related to the operating system version and does not guarantee that all windows instances can run.
Winver checks the Windows versionWmimgmt. msc open windows management architecture (Wmi)Wupdmgr Windows UpdateProgram Wscript Windows Script Host settingsWrite BoardWinmsd system informationWiaacmgr scanner and camera wizardWinchat XP built-in LAN chatMem.exe displays memory usageMsconfig.exe System Configuration UtilityMplayer2 simple Widnows Media PlayerMspaint graphic
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.