You can use the ad-hoc network on one phone (which should be Android 2.2. +) To create a Wi-Fi access point and connect a second phone to it. I'm not sure there is still an API. This question may help, although this is not recommended (see comments in this question).
user658042
source share