Re: [android-developers] Alert Dialog Box

2012-08-10 Thread dEEPESH PPM
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

Re: [android-developers] Alert Dialog Box

2012-08-10 Thread dEEPESH PPM
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

Re: [android-developers] Alert Dialog Box -Wifi

2012-08-09 Thread TreKing
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

[android-developers] Alert Dialog Box -Wifi

2012-08-09 Thread Meena Rengarajan
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

[android-developers] Alert Dialog Box

2012-08-09 Thread Meena Rengarajan
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