[android-developers] Re: putInt force closes
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)"
<cor...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home