1

is there any way to listen a Server action using a service?i want to check server message for life time and do actions based on server message,please post a sample code

sajith
  • 2,564
  • 8
  • 39
  • 57
  • 1
    Your question is way to vague, but here's an answer: _is there any way to listen a Server action using a service?_ **Yes, there is.** – bos Oct 30 '11 at 07:12

2 Answers2

0

Here i have example of using service, but it's doing some other thing. You can work it out.. http://maephv.blogspot.com/2011/08/android-notification-in-your.html

But remember, that when screen comes off, services freeze. I don't know yet how to fix it, but maybe "background process" is word to google

Maep
  • 833
  • 1
  • 10
  • 16
0

I think what you looking for is a long time running background service, check out this SO question.

Community
  • 1
  • 1
yorkw
  • 40,926
  • 10
  • 117
  • 130