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 ?

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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