FileObserver not catching events
<p>I am trying to detect changes in Wifi settings, device is rooted.
This simple FileObserver does not catch events,
Any idea why?
Thanks 
Charles</p>

<pre><code>public class WifiObserverActivity extends Activity{
/** Called when the activity is first created. */

FileObserver fileObserver;
private static Context context;

public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    //setContentView(R.layout.main);
    context = this;
    fileObserver = new FileObserver("/data/misc/wifi/wpa_supplicant.conf")
    {

        @Override
        public void onEvent(int event, String path)
        {
            Log.i("FOBS", "Event on file " + path);
        }
    };
    fileObserver.startWatching();
    Log.i("FOBS", "startWatching " + "/data/misc/wifi/wpa_supplicant.conf");
    }
</code></pre>
