I believe that messaging is a good solution. A Socket connection
should work.
You may want to used the Messaging Design Pattern (MDP) for this:


a) Messaging Design Pattern and a distributed Component/Service Model
https://jt.dev.java.net/files/documents/5553/149793/MDPdistributedModel.pdf

This would provide the communication mechanism.
For additional information please refer to the following URLs:

a) Java Pattern Oriented Framework, An application of the Messaging
Design Pattern
IBM Technical Library
http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html

b) Messaging Design Pattern (MDP) and pattern implementation -
Published in the 17th conference on Pattern Languages of Programs
(PLoP 2010).
https://jt.dev.java.net/files/documents/5553/150311/designPatterns.pdf

You can also use Jt Web services in case you decide to use
an intermediary Web server.


On Dec 3, 5:07 pm, Neykho <[email protected]> wrote:
> Hi guys, I'm having some trouble with coding. Basically what I want to
> do is have my phone application communicate with another application
> running on the desktop. Except after some searching I couldn't really
> find a good way to do it (I'm a pretty new Android developer). It
> doesn't matter how it's done, so USB, wifi, etc. will work (But the
> easier to code, the better).
>
> Here's a diagram of what I want to do:http://dl.dropbox.com/u/103233/quad.jpg
> The phone application is to the left and the desktop application is to
> the right.
>
> What basically is going to happen is the dekstop application will
> select a random quadrant, and the user will have to press that
> quadrant on the phone. So this means having to pass a message from the
> desktop to the phone, saying that "this is the quadrant that should be
> pressed by the user".
>
> Once the user selects a quadrant, the phone will compare the quadrant
> pressed with the message that the desktop sent. And from there, the
> phone application will return either a "succeed" or "fail" mesage to
> the desktop application. The application will store the results.
>
> The actual implementation shouldn't be too hard, it's just I'm not too
> sure what to use to get the two applications communicating. Any
> suggestions or advice would be awesome.
>
> Thanks.
> -N

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to