Saturday, 23 March 2013

WIFI demonstration in Android

The Wi-Fi APIs provide a means by which applications can communiate with the lower-level wireless stack that provides Wi-Fi network access. Almost all information from the device supplicant is available,include the connected network's link speed, ip address ,negotiation state, and more, plus information about other networks that are available.Some other API features include the ability to scan, add,save,terminate and initiate wi-fi connections.
Here i give the code for accessing and scanning the configuration for wi-fi :


Bluetooth in Android platform

Bluetooth:

The Android platform includes support for the Bluetooth network stack,which allows a device to wirelessly excahnge data with other Bluetooth devices.The application framework provides access to the Bluetooth functionality through the Android Bluetooth APIs. these APIs let applications wirelessly connect to other Bluetooth devices,APIs let applications wirelessly connect to other Bluetooth devices,enabling point-to-point and multpoint wireless features.

 Using Bluetooth APIs, an Android application can perform the following:
scan for the Bluetooth devices.
  • Query the local Bluetooth adapter for paired Bluetooth devices.
  • Establish RFCOMM channels.
  • connect other devices through service discovery.
  • Transfer data to and from other devices.
  • Manage multiple connections.
Here we simply gives the code for Bluetooth enable code the following.