You can setup Wifi in two different modes

-- infrastructure mode: in this mode you are using a Wifi Access Point
(AP) as central router. You get your IP address from the AP when you
have DHCP enabled.

-- ad-hoc mode: This is a mode in which you can enable peer to peer
communication to other Wifi devices without having to setup an
infrastructure.

Because Android on SDK level has no Ad-Hoc support (at least I am not
aware of that there are APIs available) you only can use what is
available on native level.

In case you are setting up your devices in infrastructure mode you can
communicate with other Wifi devices over the central AP. You could use
a broadcast IP address for your communication.

Question is whether this would fulfill your requirements. Of course in
my suggestion I did not put any thoughts about security (who is
allowed to receive the messages, ....)

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Jul 30, 1:17 am, "MMC2" <[email protected]> wrote:
> Thanks for your reply.  I want to send a two character code that is
> generated in the first phone as a result of operator input. The code will
> allow the apps in the other phones to mimic the operation of the first phone
> "as if" the operator had made the same input on them. This will
> automatically update the same process in a number of phones with the
> original operator entry on only the first phone.
>
> What do you mean by "If you can go over an AP "? Can you expand on your
> answer please and or point me to a writeup or tutorial please?
>
> Mike
>
> ----- Original Message -----
> From: "Roman" <[email protected]>
> To: "Android Beginners" <[email protected]>
> Sent: Wednesday, July 29, 2009 2:44 AM
> Subject: [android-beginners] Re: WIFI Communication between two or more
>
> phones
>
> It depends on what exactly you want to do.
>
> If you can go over an AP, then of course it is possible. If you try to
> setup an adhoc connection between two phones, the Android SDK does not
> support Ad-hoc. This does not mean that you can implement something on
> native level and expose it to your application on Java level. Normally
> the native Wifi support includes Ad-hoc and infrastructure mode.
>
> --
> Roman Baumgaertner
> Sr. SW Engineer-OSDC
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Jul 27, 7:10 pm, MMC2 <[email protected]> wrote:
> > In my app I would like to send a number of very small messages
> > consisting of a few characters each, to one or more phones that have
> > the same app and are within WIFI distance. Can this be done and can
> > someone point me in the right direction please?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to