I would use telnet to send a simple string to an active service that is installed on Android emulator. Obviously this service has been developed by me, then, if required, I can also modify it.
How to send a string to my Service via telnet?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The better question is how do you receive this string of data?
As Depado already has answered, if you have socket server which listens on android emulator side, for example, tcp server on localhost (192.168.1.10) and specific port (say 8000) then you can try to telnet:
And 192.168.1.10 for example should be network IP address which is binded to android emulator, but I’m not sure how this part is done.
Update
As stated here:
http://developer.android.com/guide/developing/devices/emulator.html :
Also read section: Emulator Networking.
Hope this helps!