service

Silverlight web service callback performance

I have a silverlight client that communicates with a web service on a server. It has a DoSomething method that does nothing and returns void. On the client, I call the service and listen to when the response comes back: proxy.OnDoSomethingCompleted+=OnDoSomethingCompleted; t0 = Environment.TickCount; proxy.DoSomethingAsync(); void DoS...

Advice on structuring a service, activity, thread

Hi, can someone please help me? I would like to write a program which uses a service to periodically update a text view on an activity. I do this by having ActivityA with a 2 buttons to start/stop my service. In the service I run a timer which triggers every second. From here I need to have this launch and update a text view on Activi...

android activity cannot bind to service

Hi, I managed to connect an activity to a service and it runs ok. This is my first activity in the application. However, if i progress (with or without binding to the service in the first activity), the next activity (resides in a tab) will not bind to the service. note that if i make the trouble-making activity to be my first in the a...

How to be notified when foreground (top) activity (application) changes

I want to write a service for Android platform that is notified when the current foreground activity changes. Basically the service should do some tasks only when the top activity changes. Is there any way to subscribe and to be notified when this kind of event occurs ? Or there is no possibility and the service should poll from time t...

Finding Service unavailaibity

Hi , I have written a service which is dependent on other other service. Usually if other service timeouts or not responding then my service response time is affected. Is there any way I can find out that for how much time the service outage is so taht i can wait for that many seconds and then retry. Thanks, Shruti ...

.net html to image with managed code.

I have service which converts HTML to image and sends back. At present I am using WebBrowser control to do that. But it is far from perfect. During peak hours service crashes or gives Null reference exception. Also it is not lightweight on memory. I looking for lightweight managed option to this job. Kindly let me know for any open ...

(best) Ways to deliver control messages to custom content provider

The android content provider has methods for the normal suspects {insert, delete, query, update} but if I want to send control messages there is no obvious mechanism. Suppose one of the tables managed by the needs to be reset, cleared and reloaded. How can this be done? I have several approaches each of them seems a bit hackish. 1) cre...

Android: How can I get the current foreground activity (from a service)?

Is there a native android way to get a reference to the currently running Activity from a service? I have a service running on the background, and I would like to update my current Activity when an event occurs (in the service). Is there a easy way to do that (like the one I suggested above)? ...

IntentService getting wedged

I've built an application which uses an IntentService for manipulating the application's database and calling web services. Example: I have an Activity which is a list of items. This list is populated by a CursorAdapter. Each item has a checkbox and the list is ordered by checked (unchecked items on top and checked items on bottom). ...

Windows service won't stop and restart

I wrote a windows service in C++ that needs to restart every night at midnight, so I call exit(1) on it so that it can be restarted by SCM. The problem is it seems every other night it starts up partially and hangs. In the event log, I get this: Application popup -Application Error: The instruction at "0x0043c145" referenced memory a...

How can I parse anyType {----} response with ksoap2

I have seen many forum questions about this, but i haven't found a solution that works for me. THis is my code: String serviceURL = "http://www.mywebsite.com/WebService.asmx"; String serviceNamespace = "http://tempuri.org/"; String serviceMethod = "getUser"; String SoapAction = "http:...

how to schedule some code execution in android or: what exactly are daemon threads in android?

hi there! i'm currently working on an app for the android os that requires to fetch data from a remote server from time to time. as this "update" should be carried out even when the actual frontend app is not running, i implemented a remote service that is started on system boot. now i need to schedule a timer to start the update. is ...

Is remote PC Technical support worth trying?

Is remote PC Technical support worth trying? ...

how to realize an update service running in the background in android?

hi there! i'm currently working on an app for the android os that displays some data. to ensure this data is up-to-date, it is required that the app fetches updates from a remote server from time to time. as the data does not change very often, this update should be carried out once per week. i want to give the user the ability to choos...

how do i send a custom message to a windows service?

I have implemented a windows xp service application that starts a couple of working threads. From one of the threads i need to send custom messages back to the service. How do i do that? ...

Error : No credentials found by which to authorize the user Missing authentication credentials

Hello all I am having a problem and this is the first time I am setting up Mutial SSL for a payment portal the code below is what I am using and the error I am getting is: System.Web.Services.Protocols.SoapException: No credentials found by which to authorize the user Missing authentication credentials [cert] at System.Web.Services.P...

Android service architecture question

I'm new to Android and I'm porting an iPhone app I did. I've been reading up on Android services and they look very useful for the network component of my app. I assume there is a common pattern for what I'm trying to do, so here are the details: User1 and User2 agree to enter a virtual room. They send messages to each other and get no...

Timer in C# windows service not restarting

Hello everyone, I have a windows service that runs four timers for a monitoring application. The timer in question opens a web request, polls a rest web service, and saves the results in a database. Please see the elapsed method below: void iSMSPollTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { i...

hosted service to post software releases for users with signup form?

I'm a sole developer looking for an online service where I can host files of my software releases for users. I want them to register first before downloading so I can get a sense of who downloaded the software. Does a service like this exist and what would be recommended? I also have manuals that I keep online for the software. ...

Problem accessing localhost URI from Silverlight

(repost because of SO outage; apologies if the other one re-appears) I'm building a Silverlight app that will run on Azure. My VS solution has two projects: the web role and the Silverlight. The web role has a Service that works. (I can go to localhost:88/expenseservice.svc/expenses and get the data I want.) I am trying to access that ...