Can someone please tell me what are the possible ways for 2 android phones to communicate with each other?(other than acting like a client/server/C2DM) ?
Uselt XMPP and the pubsub extension. In that way you can have multiple instances of your program all communicate with all others. Examples of real uses are inform all about what you play, your position, play chess and chat (jabber). Please note that this is extensions of XMPP and not the chat function in Jabber. It has massive use cases like Google Talk and Facebook chat.
Hi, I just want 2 android phone instances to communicate via HTTP protocol. Phone 1 does HTTP Post of a file to phone2, which does some processing and updates file. This has to be again sent to phone1. This process should go on.
On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie wrote:
> Depends on size of what you want to send, and how long the connection > should last....
> If its a list you want: > SMS > Nfc - he needed > Bump > QR code on screen -> QR code scanner > Audio > Bluetooth > Wifi direct > Wifi via 'relay' server
> If its a solution you want, then maybe give us some more information about > what you want to do.....
I think I've said this before, but you probably do _not_ want to use
an HTTP stream socket connection, that will be an excellent way to
kill the device's battery and most data providers block ports anyway.
On Mon, Oct 15, 2012 at 5:14 AM, Archana <ramalingam.arch...@gmail.com> wrote:
> Hi, I just want 2 android phone instances to communicate via HTTP protocol.
> Phone 1 does HTTP Post of a file to phone2, which does some processing and
> updates file. This has to be again sent to phone1. This process should go
> on.
> On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie wrote:
>> Depends on size of what you want to send, and how long the connection
>> should last....
>> If its a list you want:
>> SMS
>> Nfc - he needed
>> Bump
>> QR code on screen -> QR code scanner
>> Audio
>> Bluetooth
>> Wifi direct
>> Wifi via 'relay' server
>> If its a solution you want, then maybe give us some more information about
>> what you want to do.....
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
But the requirements are to use HTTP. Please let me know if I have to use AIDL/ Binder for this scenario? Any suggestion will be really helpful to me. Thanks in advance!
On Monday, October 15, 2012 5:16:19 PM UTC+3, Kristopher Micinski wrote:
> I think I've said this before, but you probably do _not_ want to use > an HTTP stream socket connection, that will be an excellent way to > kill the device's battery and most data providers block ports anyway.
> kris
> On Mon, Oct 15, 2012 at 5:14 AM, Archana <ramalinga...@gmail.com<javascript:>> > wrote: > > Hi, I just want 2 android phone instances to communicate via HTTP > protocol. > > Phone 1 does HTTP Post of a file to phone2, which does some processing > and > > updates file. This has to be again sent to phone1. This process should > go > > on.
> > On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie wrote:
> >> Depends on size of what you want to send, and how long the connection > >> should last....
> >> If its a list you want: > >> SMS > >> Nfc - he needed > >> Bump > >> QR code on screen -> QR code scanner > >> Audio > >> Bluetooth > >> Wifi direct > >> Wifi via 'relay' server
> >> If its a solution you want, then maybe give us some more information > about > >> what you want to do.....
> > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-d...@googlegroups.com<javascript:> > > To unsubscribe from this group, send email to > > android-developers+unsubscribe@googlegroups.com <javascript:> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en
AIDL has nothing to do with this, other than the fact that it is also
sending information across a kernel barrier, but otherwise completely
unrelated.
Why are your requirements to use HTTP? Is this for a class? If so,
then read any of the hundreds of "network programming in Java"
tutorials on the internet, it is literally no different in Android,
except that you will probably do it in a service.
On Mon, Oct 15, 2012 at 10:19 AM, Archana <ramalingam.arch...@gmail.com> wrote:
> But the requirements are to use HTTP. Please let me know if I have to use
> AIDL/ Binder for this scenario? Any suggestion will be really helpful to me.
> Thanks in advance!
> On Monday, October 15, 2012 5:16:19 PM UTC+3, Kristopher Micinski wrote:
>> I think I've said this before, but you probably do _not_ want to use
>> an HTTP stream socket connection, that will be an excellent way to
>> kill the device's battery and most data providers block ports anyway.
>> kris
>> On Mon, Oct 15, 2012 at 5:14 AM, Archana <ramalinga...@gmail.com> wrote:
>> > Hi, I just want 2 android phone instances to communicate via HTTP
>> > protocol.
>> > Phone 1 does HTTP Post of a file to phone2, which does some processing
>> > and
>> > updates file. This has to be again sent to phone1. This process should
>> > go
>> > on.
>> > On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie wrote:
>> >> Depends on size of what you want to send, and how long the connection
>> >> should last....
>> >> If its a list you want:
>> >> SMS
>> >> Nfc - he needed
>> >> Bump
>> >> QR code on screen -> QR code scanner
>> >> Audio
>> >> Bluetooth
>> >> Wifi direct
>> >> Wifi via 'relay' server
>> >> If its a solution you want, then maybe give us some more information
>> >> about
>> >> what you want to do.....
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-d...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscribe@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
On Monday, October 15, 2012 8:57:57 PM UTC+3, Kristopher Micinski wrote:
> AIDL has nothing to do with this, other than the fact that it is also > sending information across a kernel barrier, but otherwise completely > unrelated.
> Why are your requirements to use HTTP? Is this for a class? If so, > then read any of the hundreds of "network programming in Java" > tutorials on the internet, it is literally no different in Android, > except that you will probably do it in a service.
> kris
> On Mon, Oct 15, 2012 at 10:19 AM, Archana <ramalinga...@gmail.com<javascript:>> > wrote: > > But the requirements are to use HTTP. Please let me know if I have to > use > > AIDL/ Binder for this scenario? Any suggestion will be really helpful to > me. > > Thanks in advance!
> > On Monday, October 15, 2012 5:16:19 PM UTC+3, Kristopher Micinski wrote:
> >> I think I've said this before, but you probably do _not_ want to use > >> an HTTP stream socket connection, that will be an excellent way to > >> kill the device's battery and most data providers block ports anyway.
> >> kris
> >> On Mon, Oct 15, 2012 at 5:14 AM, Archana <ramalinga...@gmail.com> > wrote: > >> > Hi, I just want 2 android phone instances to communicate via HTTP > >> > protocol. > >> > Phone 1 does HTTP Post of a file to phone2, which does some > processing > >> > and > >> > updates file. This has to be again sent to phone1. This process > should > >> > go > >> > on.
> >> > On Saturday, October 13, 2012 11:37:28 AM UTC+3, Andrew Mackenzie > wrote:
> >> >> Depends on size of what you want to send, and how long the > connection > >> >> should last....
> >> >> If its a list you want: > >> >> SMS > >> >> Nfc - he needed > >> >> Bump > >> >> QR code on screen -> QR code scanner > >> >> Audio > >> >> Bluetooth > >> >> Wifi direct > >> >> Wifi via 'relay' server
> >> >> If its a solution you want, then maybe give us some more information > >> >> about > >> >> what you want to do.....
> >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "Android Developers" group. > >> > To post to this group, send email to android-d...@googlegroups.com > >> > To unsubscribe from this group, send email to > >> > android-developers+unsubscribe@googlegroups.com <javascript:> > >> > For more options, visit this group at > >> > http://groups.google.com/group/android-developers?hl=en
> > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-d...@googlegroups.com<javascript:> > > To unsubscribe from this group, send email to > > android-developers+unsubscribe@googlegroups.com <javascript:> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en