service

How to get an event in a service when the screen is touched ?

I would like to implement a service in Android that basically should monitor the time elapsed since the user didn't touched the screen. For example the user opens Internet or Adobe Reader, starts reading and don't interact anymore withe the touchscreen. I want that my running service know the time since the user didn't touched the screen...

How should I use Executor insteand of AsyncTask or IntentService for queueing task on Android?

Is it a good solution or not? How to implement? When should I shutdown properly? I shutdown it onDestroy() in the Activity, then relaunch my app as soon as possible. It causes a java.util.concurrent.RejectedExecutionException, why? Does anyone know its lifecycle? Any idea? Thanks. ...

RIA services: How to navigate from frontend to backend service method ?

I've got a call to a RIA services method in my frontend. Is it possible to navigate to the corresponding method in the service ? Using "F12 goto definition" or something similiar ? When I press F12, Visual Studio only navigates to the generated stub method in my frontend (*.Web.g.cs file) but that's not what I need. Maybe it's possible...

Multiple threads in Android activity/service

Hi. I have an android app, where in a list view for each element in list, I load an image from web in a separate thread. So if there are 8 items displayed in list view, activity will try to fire 8 different threads, one for each list item to load an image. As you scroll down the list, the number of threads may increase if the previous t...

My BroadcastReceiver is not receiving the BOOT_COMPLETED intent after my N1 boots. Help Please!!!

I am unable to get my BroadcastReceiver onReceive method called using the BOOT_COMPLETED intent. AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.jerrellmardis.umbrella" android:versionCode="4" android:versionName="1.0.3"> ...

Why does this Python service stop by itself in spite of an infinite loop?

Hi, I managed to install a Python script as a service using this recipe at ActiveState: win-services-helper. In order to get much use out of it, I included the business end of my program by replacing lines 99 - 100: 95 class Test(Service): 96 def start(self): 97 self.runflag=True 98 while self.runflag: ...

Windows service for WCF Stops

Hi, I have a WCF application hosted as a windows service. This windows service triggers this WCF every 15 minutes. But when an exception occurs in this WCF the service is getting stopped. I don't want this service to stop. I want to some how handle this exception and trigger this WCF after another 15 minutes. How can i do that? Plea...

Calling WCF Service from MS Access

Hi all, I want to create a create a WCF Service which is invoked on the button click of MS Access Form. Please help me out. Kind Regards, Shahid Hazoor ...

Parsing data from web service. jQuery and Sharepoint 2007

Hi, i would just like to know if the way i am doing (parsing xml data) is correct. From web service (hosted on sharepoint 2007) i retrive xml data. Web service does not retrive any parameters, just returns data. Now I'm using jQuery .ajax() function to go throu this data and output it. XML is very deep inside (7 levels) Just an exa...

How to get image from silverlight to non-silverlight ?

Hi, I need a very weird thing I admit. I hope you'll be able to help me. My current situation (all in one solution VS2010): I have the Silverlight assembly with user-control (basically a drawing of kind) I have a WCF service to provide the images (hosted in the website project) I somehow need to: when someone requests the RESTful...

Parcel.readException passing an object to remote service

I wrote a remote service that the clients can log on with the usual mechanisms of IPC provided by Android and the binding seems to work. The problem arises when I go to call a method that I have to pass an object as a parameter because I get this "curious" exception: 10-19 15:09:04.601: ERROR/AndroidRuntime(2985): FATAL EXCEPTION: main ...

How can my service change values of variables and UI textfields of my activities?

Hi I have an application that get/send data from/to a remote DB on internet. I need to get my application working in background mode, then i supose that i have to put all the send/get remote data in a service..... but.... How can this service change values of variables and UI textfields of my activities? i can't find any information ...

How to invalidate a C# WCF session if login is incorrect

I am writing a remote service for an application using WCF, in which login information is kept in a database. The service requires session establishment through a login or account creation call. There is no ASP involved. Now, when a client starts a session by calling an exposed IsInitiating method, I check the account data provided agai...

Android Service is process or thread

Android "Service" is a process or a thread according to operating system? ...

Is there a subscription product I can use to calculate tax?

I need some options for calculating sales tax. Here is a simple scenario:If given an address of a vendor and an address of a person that received goods - I need to make sure that we pay use tax if the vendor has not charged enough. Paying a subscription for up to date information is what I have in mind. I would be up for, consuming a ...

A tutorial on creating standalone web service under windows using Java opensource serverlet engine like TomCat

I need a tutorial for creating simple, executable web service runing stand alone on windows... So like .exe that can run on any windows with JRE installed and will open port like 4444 and will listen to http(s) calls and respond to them. Tutorial can use Spring and Hibernate and any other OpenSource libs. Tutorial can use any opensource ...

Open only one activity, without the main activity

I have an application that has one service and 2 activities.One activity (the main one) is a preferences activity and the other one is a dialog themed activity. The service from time to time needs to open only the dialog themed activity (using FLAG_ACTIVITY_NEW_TASK). The problem is that when the preferences activity is opened in backgro...

Something like GWT but without compiling

Hi folks, I'm studying Computer Science in Germany and recently stumbled upon Web Services and Google Web Toolkit. I thought: "Great, define buttons, input fields, panels, ... just hit compile and it works" Then i thought: "Why hit compile? ..." Question: Is there a technology where I can define buttons, panel, input fields, ... on t...

Can't Start MySQL Server 5.1 As A Service On Windows XP SP3

I've had MySQL running as a service on my Windows XP SP3 development desktop, but I can't start it now. I'm trying to get Python's MySQLdb module working. When I got a "no module named _mysql" message, I found out that I didn't install the MySQL C header files, so I downloaded the MySQL 5.1 .msi and ran it to add the C header files to ...

Securing WCF Service output

Hello there, I have a WCF Service which is consumed by a web application right now. This WCF service creates reports and saves them to a folder on server. Also, it updates the database with a complete url to download the report. I am concerned about the security of complete url being updated in the database. One option is to save only ...