When I create a Wifi hotspot through the "Settings" menu in Android, I am able to connect to my Wifi hotspot however, when I do so programatically (using WifiManager
's addNetwork()
, disconnect()
, enableNetwork()
and reconnect()
) I am not able to do it. What's the difference between both the methods of creating and connecting to Wifi? Is there any way to overcome that difference through a program?

- 841
- 1
- 10
- 22
1 Answers
I explain it: Cretae wifi Hotspot using settings is not actually you create hotspot you just on your default hotspot which is already created by android system. Here you just on/off for other wifi.
and
Create you it by programmatically means you have create a (hotspotpoint)point for other users so when you create it by programatically its not start default point, its your own point. then it to on/off for other wifi.
What's the difference between both the methods of creating and connecting to Wifi ans: i will give you example suppose bought tv is creating a point. but without its power switch you can not see moive other other channels same like without (connecting) wifi on other and you cant connect to other wifi hotspot. i hope you understand..
thats it...

- 2,140
- 1
- 14
- 15
-
Hey thanks Jay. Is there any source/refernce for this? Also, is there any way I can overcome that difference in a program? – Pervy Sage Aug 04 '14 at 06:17
-
yes there are check android developer site for wifi hotspot and wifi. and mark as ans if it is use ful. – Jayesh Khasatiya Aug 04 '14 at 06:19
-
Checked. I couldn't really find anything similar to what you are mentioning. Could you please provide a link? – Pervy Sage Aug 04 '14 at 06:47
-
Also Read about WifiManager. – Jayesh Khasatiya Aug 04 '14 at 07:05
-
I have used WifiManager. (If you want to see my same code go to: http://stackoverflow.com/questions/25075343/how-do-i-connect-to-multiple-wifi-networks-one-after-the-another-programatically). I meant reference for your statement: " Create wifi Hotspot using settings is not actually you create hotspot you just on your default hotspot which is already created by android system." I couldn't find any reference supporting this statement. – Pervy Sage Aug 04 '14 at 07:18