Wifi Error: Invoking mWifiStateMachine.setWifiEnabled
<p>I am using BroadcastReceiver to get the data form server using wifi, as far as wifi is on every thing working fine for me.In the code, i am using WifiManager mWIFI_MANAGER= mWIFI_MANAGER.setWifiEnabled(true); to start wifi programatically. This specific situation i am  getting force close, Error is:Invoking mWifiStateMachine.setWifiEnabled.with out any modification in the code, If i open application again it is working fine.
Here my Question is,
1) How to make my activity stable in wifi state changes.
2) Is their any Call back method in the activity in the specific situation.</p>

<p>any suggestions or code samples are requested..thanks in advance  </p>
