Hi,
Try this code;
In yes button click
WifiManager wifiManager =
(WifiManager)this.context.getSystemService(Context.WIFI_SERVICE);
wifiManager.setWifiEnabled(status); status =true or false
Regards
On Fri, Aug 10, 2012 at 11:18 AM, Meena Rengarajan
wrote:
>
> How to Enable Wifi
Hi,
On Fri, Aug 10, 2012 at 11:18 AM, Meena Rengarajan
wrote:
> How to Enable Wifi automatically in Android 2.2 in an alert box ? If i
> click Yes button then it should be enable and if i click no then
> application must be closed. Can anyone tell me this how should i do ?
>
> --
> You received
On Fri, Aug 10, 2012 at 12:53 AM, Meena Rengarajan
wrote:
> When i click Yes button , it automatically should enable WiFi by
> progeammatically and if i click No then aopplication must be closed. What
> should i do here . Please can anyone help me?
http://lmgtfy.com/?q=android+turn+on+wifi+progr
This is my Code, Alert box appears here like Yes /No. But what i need is,
When i click Yes button , it automatically should enable WiFi by
progeammatically and if i click No then aopplication must be closed. What
should i do here . Please can anyone help me?
public void onClick(DialogIn
How to Enable Wifi automatically in Android 2.2 in an alert box ? If i
click Yes button then it should be enable and if i click no then
application must be closed. Can anyone tell me this how should i do ?
--
You received this message because you are subscribed to the Google
Groups "Android Dev
5 matches
Mail list logo