PI9 wrote:
> Good morning,
> I'd like to do an app which draws a picture on the screen when the
> reception is ok, ok enough to make a call for instance and draws
> another picture when there is no reception at all.
> I used ServiceState :
> 
> ServiceState mservicestate = new ServiceState();
>               int state = mservicestate.getState();
>               if(state == 1)
>                       reception.setImageResource(R.drawable.reseau);
>               else
>                       reception.setImageResource(R.drawable.pas_reseau);
> 
> 
> But there is still an error message "force to close".
> Can anyone explain to me how can this work ?

If you get a force-close dialog box, your Java stack trace should tell
you where you are crashing. You can get the Java stack trace via adb
logcat or DDMS.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to