service

WPF - slow service init connection

Hi, I am developing a small WPF application which is using web service. The web service is only available for internal users and they have to be logged in to their machines to be able to use it - it is using windows credentials. Everything works well except the connection speed. It takes around 10 sec to initiate the connection and do...

How to add start/stop functionality to a Java application for registering as a service

Hello, We are writing an application in Java and it needs to be start/stoppable by another application, like a service/daemon. We package it in a .jar which encapsulates everything it needs to run, and put it in a "working directory" which contains configuration files, variable resources, logs, etc. Is there a good way to be able to st...

Pass data from ServiceInstaller class to ServiceBase derived class in C#

Hi, I currently am passing a string from the command line into my server installer class which I then access using this.Context.Parameters["whatever"]. Is there any way I can then pass this string on into my actual service class to be used by it at runtime or do I need to save it to the drive in an ini or add it to the registry and then ...

how to use reportservice2005.asmx

Hi there, is there an article that explain how to implement reportservice2005.asmx? thanks ...

how to display progress of service in android

In my android application, I am using the tab view and so I have two tabs: parameters and results. the user enters the various parameters on the first tab and then switches to the second tab to view the results. i have a service that performs some long-running calculations. the user enters parameters on the first tab and hits 'calcula...

How to set "interact with desktop" in windows service installer.

I have a windows service which runs under system account and executes some programs from time to time (yeah,yeah, I know that's a bad practice, but that's not my decision). I need to set the "interact with desktop" check, to see the gui of that executed programs, after the service is installed. I've tried several ways, putting the code b...

android service running in the background

Hello, I would like to make a service that runs in the background and monitors the quality. I have thought of a separate service that exposes an aidl interface to an activity, the aidl would have some monitor related functions that an activity can call. To give an example of how my service should work think of the ebuddy application that...

How to handle File Server unavailable errors

I need to know how to recover from the following error: Windows service is accessing a file on a network server. The network crashes, server goes down or becomes unavailable. I need the service to wait until the server is back on line to continue processing the files. What should I use to do this? I figure I can trap the server un-avail...

How does getting the application reference from a service work in Android?

Hello all, I have a local Service running together with my application. I also have a class derrived from Application class. When the local service is created it gets and uses the Application instance using getApplication. Can the app itself be terminated while my service is still running and what happens if so? Would getApplication ...

How to intercept a hard key pressed in a service?

Is there anyway to intercept that a hard key was pressed by using a service in order to launch an activity? In other words : Is it possible to handle the KeyEvents in the Service? ...

Stagefright media delay in 2.2 after setting data source?

My first post here. This website has been very useful for learning Android programming, thanks to everyone. I have a simple app that loads an MP3 stream and plays it. It works fine on 1.6 and 2.1 but on 2.2 it doesn't quite work right. It seems my service is having a problem starting, it's giving my an ANR and the dialog where I have to...

How to bind to running android service?

I'm hoping this is more of an issue with code than anything else and I'm hoping that someone out there can help track down the issue. I have other code that starts the service with startService() and I can verify that the service is started as the debugger hits the onCreate() function of DecoderService. However, the bindService never b...

Loopback connections working in user's context but not working from Local System account

We have a networking application that can run from a service account as well as a regular user's account. The app tries to open up a loopback connection to another service running on the local machine. So for example it tries to connect to: 127.0.0.1 port 2000. On a very small number of Windows machines we're seeing an issue where tryin...

Where to host a periodically running Python or Java service?

I'm going to build a little service which monitors an IMAP email account and acts on the read messages. For this it just has to run every say 10 min, no external trigger required, but I want to host this service externally (so that I don't need to worry about up times.) To be machine independent I could write the service in Java or Pyth...

Benefits of Tomcat (or equivalent) for a simple service

I'll need to develop a Java service that is simple because: It only communicates via a TCP socket, no HTTP. It runs on a dedicated server (there are no other services except the basic SSH and such) Should I make this a standalone service (maybe in something like Java Service Wrapper) or make it run in a container like Tomcat? What ar...

Android - Sending data from an activity to a service

I've a local service that is started in my main activity. The service is responsible for network I/O. It also interacts with other activities in my application. Till, now the service was only "providing" data to activity (using callbacks and not Intents.) Now I need to send data (custom objects) from my activities to the service. I unde...

Is it possible to run ATL service as user application

I have to develop ATL app that is meant to run as service most the time, however we need to deploy it as user application in few environments ...

Service without Activity. how?

I am new to android.. just started writing service using activity.. i want to know if there are any other ways to trigger a service without the use of activity? like when a new message arrives, the service need to start running.. if so, how? Thank you.. ...

How does Visual Studio 2008 and svcutil decide which types to re-use from referenced assemblies when generating a web service proxy class ?

I need to know how does svcutil and Visual Studio decide which types can be re-used from referenced assemblies when generating a web service proxy class. I have an assembly with some types that are declared like this: namespace MYCOMPANY.BO.Accounting { [Serializable, DataContract] public class AccountingPackagePutRequest : Req...

Multiple activities binding to a service

Hi All, I have a service component (common task for all my apps), which can be invoked by any of the apps. I am trying to access the service object from the all activities, I noticed that the one which created the service [startService(intent)] has the right informaion. But rest does not get the informaion needed. My Code is as below: ...