John,
Thanks for the reply.
I am trying this app on Nexus One so it has WiFi.
Your question about value being null is that you are referring that
getApplicationContext() or getContentResolver() returns null?
I will check out the values before passing to putInt. This fails on
AVD also but I can take that AVD does not have WiFi but still it has
system setting which has that WIFI_SLEEP_POLICY to read and write.
Thanks again for your reply and any further help appreciated.
JP.

On Jul 26, 1:20 am, "Maps.Huge.Info (Maps API Guru)"
<[email protected]> wrote:
> Is the value is null? What device does this user have? Does it even
> have a wifi?
>
> There could be lots of reasons, you should make your app bullet proof,
> or at least resistant by testing the value to make sure you have what
> you think before using putInt.
>
> -John Coryat

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to