Questions tagged [service]

A Service is a long-running executable that performs specific functions and which is designed not to require user intervention.

A Service is a long-running executable that performs specific functions and which is designed not to require user intervention.

Services usually provide an interface to Start, Stop, Pause and Restart the executable that is running in the computer's background.

23127 questions
5
votes
3 answers

can you expose the progress of a web service to a client - WCF

I have a service that does image processing. The time that it takes for the process to complete is something like 2-3 minutes. Can I update the client with the progress of the service? can I somehow tell the client that process reached step3 or…
Ryan
  • 5,456
  • 25
  • 71
  • 129
5
votes
4 answers

permission denied when I try to startService

I am trying to access an InputMethodService from an Activity, and I am running into issues with the permissions. This is for a custom keyboard app. What I am trying to achieve is to bind the text, which is created in the Activity back into the…
coder
  • 10,460
  • 17
  • 72
  • 125
5
votes
13 answers

What's the easiest way to schedule a function to run at a specific time using C#

If I had a lot of messages in a database that I wanted to send, and each row specified a date and time to send the message, and a flag for if it has been sent. These won't always be at fixed intervals, and more than 1 message may want to be sent at…
Dan Harris
  • 1,336
  • 1
  • 21
  • 44
5
votes
3 answers

Error 1053: The service did not respond to the start or control request in a timely fashion

I have an executable that I would like to set to run as a service. Using the sc.exe tool provided by windows (see KB article here: http://support.microsoft.com/kb/251192), I successfully "registered" the service. However, when I go to the Service…
user1046592
  • 61
  • 1
  • 1
  • 2
5
votes
3 answers

Long running Android 'service'

I have an Android app, in which Activities fire long running operations that run in the background. These operations interact with the Activities when done. I'm developing a component that handles the Activity/Long-Running-Task coupling, taking…
zmbq
  • 38,013
  • 14
  • 101
  • 171
5
votes
4 answers

Lightswitch: Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound

I'm currently creating a small silverlight application for testing, to see if it can works with other projects. In debug, everything is working, but once I deploy it to my local IIS Server, I got this error: Load operation failed for query…
J4N
  • 19,480
  • 39
  • 187
  • 340
5
votes
3 answers

How to access an already-running Application Context from a Sync Adapter service in Android?

I have an app that consists of several activities, and I use the Application Context (entended from the Application Class, and I made it persistent) to share data and objects between all the activities. I use the Application Class instead of a…
user496854
  • 6,461
  • 10
  • 47
  • 84
5
votes
1 answer

Developing an email client app on android

I am trying to develop a small application for sending and receiving emails on the Android plataform. Currently i have been using the Javamail api trying to send an email. However i thought that if i implement my app using javamail how am i going to…
skay-
  • 1,546
  • 3
  • 16
  • 26
5
votes
2 answers

How to implement Android Open Accessory mode as a service?

I've been playing around with the Android Open Accessory Development Kit. By following the DemoKit example provided by Google, I've had no trouble in adapting the solution to my application. I can detect, communicate, and detach the accessory just…
Petteri Pertola
  • 281
  • 2
  • 6
  • 23
5
votes
3 answers

Updating UI from a service (using a handler?)

I am trying to update my UI in FirstActivity when I receive a notification but is confused by runOnUiThread , Runnable and Handler. Here is what I have: I am running FirstActivity and NotificationService. When NotificationService reeives a…
newbie
  • 958
  • 4
  • 13
  • 25
5
votes
1 answer

Android Service Testing

How to test my IBinder object that Service return on onBind ?
alexkipar
  • 299
  • 4
  • 15
5
votes
3 answers

Android Background Service vs AlarmManager

Can someone give a little bit briefing or perhaps more elaborate details on differences Android background service with Alarm Manager? How they differ? And in which situation I should use each? I am developing an application that need to download…
stuckedunderflow
  • 3,551
  • 8
  • 46
  • 63
5
votes
3 answers

Sharing memory between Windows Service and Application, what is easiest?

I need my Service to update fields in shared memory for a client application to read and display. I've found my current solution to be ineffective because of Session 0 Isolation. I've renamed the mutexes in the Global namespace which fixes that…
John
  • 6,433
  • 7
  • 47
  • 82
5
votes
1 answer

Android App to run continuously in background

We wanted to run a service continuously in background in Android. We also know that Android has introduced background execution limits from API 26 where it clearly mentions that service will get killed within very less time once Application goes in…
Rohan Pande
  • 301
  • 1
  • 5
5
votes
1 answer

How to get the 'reactor' when the twisted application is started by twistd?

My application uses the 'twisted.web.client.Agent' to get web content. But the Agent class requires a 'reactor' instance to initiate. If I start my application using the 'twistd', there will be no 'reactor.run()' at all. So how can I get the…
David S.
  • 10,578
  • 12
  • 62
  • 104