I have two doubts
- When I call stopself() in the service, it raises an ANR (Force close
or Wait)
I am calling this in a seperate thread as shown in my service:
...
        quitServer(){
                        Thread thrm = new Thread(null, mTask, "MYService");
                        thrm.start();

        }

        Runnable mTask = new Runnable() {
                public void run() {
                        disconnectServer();
                        stopSelf();
                }
        };
...
I am pretty sure there are no other activity going on while i am
trying to quit because I can see from the server it has successfully
quit.
Any help or suggestion would be appreciated.




--~--~---------~--~----~------------~-------~--~----~
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