Message exchange through wifi and bluetooth

I am currently working on the creation of an application for mobile devices with Android which should be capable of sending and receiving messages through local means like wifi and bluetooth. After making a research about it I found out that Android doesn't have a native wifi ad hoc functionality and that the only way to achieve that is through rooting your device and patching the wpa_suplicant and some other similiar methods which are not generic for every device.

Synopsis of what I am trying to achieve:

An application for Android that scans for devices nearby and tries to connect to them automatically. If the other device also got this application isntalled then it automatically accepts any connection request it receives and when the connection is established it sends back a message which ensures that it has this app installed so that both can start exchanging messages automatically and the users don't have to allow/deny any of the sending/receiving in real time.

My questions are:

1. Is there any way of sending messages through wifi between 2 android devices without the use of internet?

2. Since Ad Hoc is not supported, is there any alternative?

3. In case the answer to 2 is no , then is it possible to make one of the devices to be an access point so the other can connect to it and vice versa.

4. As for bluetooth, is it possible to skip or automate the allow/deny pop up of an incoming connection and the pairing procedure?

I ll be glad if you could give me an answer to those and/or any suggestions.

Thanks in advance,

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by haag.clint
3 hours ago
Last post by qoberbrunner
1 hour ago
Last post by pollich.torrance
13 minutes ago
Last post by jalon38
51 minutes ago
Last post by muller.wilmer
1 hour ago
Last post by zcarter
3 hours ago
Last post by bcrooks
34 minutes ago
Last post by schowalter.deondre
4 hours ago