You can communicate between two devices via Wi-Fi without a router / access point using Wifi Direct (P2P) in Android 4.0.
Otherwise, I donβt think you can achieve this via Wi-Fi (Bluetooth will be a better alternative). Starting with version 2.2, you can configure your phone as a Wi-Fi access point (to bind a network connection to the device), but during this time Wi-Fi equipment is not available for normal use. If you have 3 devices, they can work (1 AP, 2 to it).
Is it for a permanent connection or a one-time small delivery? You can use NFC if you want to pass a URL, for example (Android Beam integrates this type of sharing in Android 4.0, but can implement it in version 2.3).
Funkthemonk
source share