Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
331 views
in Technique[技术] by (71.8m points)

android - Communication between two apps using emulator as server and client

I have a problem. I want to make an emulator on my computer as a server. Then I want to communicate to another application installed on another emulator on the same computer.Or this may be two phone also.similarly two emulator communicate as server client

I searched on Google but I found no relevant answers.

Problem:

1)I have two emulators or phone`

2)I want one work as server and the other to work as a client, and I want to communicate between them

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

For 2 apps on the same virtual (or real) device to work together, besides the regular Intent object, you might have a look at bound Services and AIDL : http://developer.android.com/guide/components/aidl.html


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...