0

I am looking for the best, if any, programmatic way of connecting two or more Android phones to each other through the use of either Bluetooth or preferably, Wi-Fi. Apparently Android devices still do not have ad-hoc Wi-Fi capabilities and I am trying to create a peer based program without the use of any central server.

I want to accomplish this without the use of modification to the phones (no rooting). It is even fine to have a phone act as an access point with no Internet access to its clients if that is possible, I just need a mobile network.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Ryan
  • 3,579
  • 9
  • 47
  • 59

2 Answers2

2

I have 2.2 on my Android phone and it does have tethering - it can create a wireless access point then other devices can connect to it.

To prevent it having the internet, just turn mobile internet off.

Jake
  • 775
  • 9
  • 17
  • Your phone isn't rooted? Where in the Android SDK is this feature available? – Ryan Jan 20 '11 at 21:40
  • Not sure if it's in the SDK, but I know if I go to Menu -> Settings -> Tethering & Portable hotspot I can create one! – Jake Jan 20 '11 at 21:42
  • 1
    I'm sorry, but in my question I said I need to create a peer based program, I can't rely on users using external programs and features not available on all android devices. – Ryan Jan 20 '11 at 21:50
0

The short answer is, you can't directly through the SDK. Some phones / revisions may have factory or other support to do so, but you can't rely on the SDK to do this.

Ryan
  • 3,579
  • 9
  • 47
  • 59