Well, you have two options.  You can either communicate the
applications directly with each other, or have an intermediary.
If you choose to have the applications communicate directly you have
to make either of the applications can listen on a port and have other
clients communicate with it.

This is a pain to implement and has limited usability.

The other option is to have a middle server (that's publicly accesible
via the internet) that simply relays the communication between the
applications.
I'm a big Message Queue advocate, so I used RabbitMQ as my middle
server, and use its java library from my android application to
implement messaging.  It's fairly simple, but again it has it's
limits.

On Fri, Dec 3, 2010 at 2: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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx

-- 
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