service

Android Service interacting with multiple activities

I'm trying to refactor/redesign an Android app. Currently, I've one UI activity (Activity 1) that creates a DataThread. This thread is responsible for network I/O and interacts (provides data) with the UI activity via a handler. Now, I want to add another activity (a new UI screen with Video) - Activity 2. Activity 1 is still the main ...

Android - Can a Service report back to calling Activity with status

Is there a way that a Service can report back to the calling activity when the Service has reached a particular stage of processing? For eg: Consider a music player activity that initiates the actual music playing in the background as an Android Service. I want to detect and inform the Activity when the Service has reached the Mediapla...

How to set Windows Services permissions from Powershell?

I need to grant a specific account SERVICE_START permissions for a given Windows service. There seems to be some methods for doing so here, but would prefer a method that's native to PowerShell and doesn't require external tools, for ex. by using Get/Set-ACL cmdlets, or calling some .NET API. Does someone know how to do it in that fash...

jboss delopy problem: created sar can't be start normally in the deploy path of jboss

I have developed a sar file and want to deploy it into the deploy path of jboss. I think if I put the sar into the right path of jboss, jboss will start it automatically. But I get the errors as following and I can't get the reason by google: mcdp-alarm-agent.sar is the sar I developed. *06/30 10:53:36,455 ERROR [org.jboss.deployment...

wcf service OpenTimeout error

i am making a WCF service, and its corresponding client, both hosted in a single ASP.NET application. Now what happens, is that whenever i open my connection, it gives a timeout error. It happens, only of the .Open() statement. And moreover, it doesn't happen always, but sometimes it keeps coming.?? Please tell me a way.. ...

Is there any API available from Monster for searching job

Is there any API available from Monster to search job based on keyword, category, location, etc. I got the below link after some googling http://xml.monster.com/doc/ But there is no specification about job search. Any help on this is greatly appreciated.. ...

Is bindService necessary for a local (same process) Service?

I have a Service singleton class with static methods that I call from the same process. I call startService when my Application starts. I also call bindService, but now I am wondering if that is really necessary. ...

Android Activity bind to Service

I have a series of 3 activities, and the 3rd activity binds (I'm using AIDL) to a Service. What I notice is, if I am on the 3rd activity and start the service, on clicking the back button (moving from 3rd activity to 2nd activity), the Service onDestroy() gets called, and the Service is stopped. How can I ensure that the service runs e...

C# .NET web service and returning list of objects that have children with a list of child objects

I am building a web service to pass back a list of (artist) objects. Inside of the artist object there is a list of (album) objects. Inside the Album object there is a list of songs. SO basically I am building a big parent child tree of music. My question is, how to I pass this using SOAP? What is the best method to use. Right no...

OSGi service trackers not always working

Hey guys. We're using OSGi services in an Eclipse RCP application. To track them, we're using the org.osgi.util.tracker.ServiceTracker class. A sample code from the application looks like mailServiceTracker = new ServiceTracker(context, MailService.class.getName(), null); mailServiceTracker.open(); MailService service = (MailService) ma...

Windows Service with GUI monitor?

I have a C++ Win32 application that was written as a Windows GUI project, and now I'm trying to figure out to make it into a Service / GUI hybrid. I understand that a Windows Service cannot / should not have a user interface. But allow me to explain what I have so far and what I'm shooting for. WHAT I HAVE NOW is a windows application...

Good way to handle large collection in a domain model - with JPA/Hibernate ORM?

I have some OneToMany child collections in my domain classes that may grow over time to hold hundreds or (very likely) thousands of instances. However, often times the only thing the parent really needs is the "first" child or the "last" child or the "biggest" child. Having the parent instance loop through a large collection of objects...

When to Bind and UnBind to a LocalService from an Activity

Currently, I'm binding to a service in the onCreate() method of an Activity and unbinding in the onDestroy() method of the Activity. I've more than one activity binding to the same service. Am I using the correct lifecycle methods to bind and unbind? Thanks. ...

How to implement push notification for multiple Android apps?

Our products still target OS 1.5+, so C2DM in Froyo is not an option. I think wrap a persistent TCP connection in a service would be feasible. But I'm still wondering how to use one service to receive notifications for multiple applications. I don't want to create service and connection for each of my apps. Should I try to register the...

Binding to a service in Android

I'm a little confused on how binding to services works. I understand using Context.startService() starts the service and that bindService doesn't call onStartCommand. But my understanding is that if I use startService, I have to explicitly stop the service. But I want the service to die if there are no more activities bound to it. My pr...

Flex API for com.adobe.serializers.xml.XMLSerializationFilter?

I'm running into a problem with a poorly formed response that's causing an xml parsing error. I don't have any control over the response, so I've been trying to subclass the XMLSerializationFilter, and catch the error in my own override deserializeResult. But flex is complaining that I'm not matching the method signature. I can't seem...

starting service without application

I have a call blocking application. It has 3 files: 1) class BlockMyCall extends BroadcastReceiver 2) class SimpleClass1 extends Service 3) PhoneBlock extends Activity I start "PhoneBlock " Activity to call Service "SimpleClass1 ", which eventually calls "BlockMyCall" intended to block outbound calls (by setting result to "null"). ...

computer science as a community service

I came across Ushahidi today and that got me thinking about various community service software projects. What other community service software projects are there, whether they be web-based (as Ushahidi is) or not? Note, I'm not talking about open source by itself, per se—although I presume most community service software will be opensou...

MVC in Android: Application or Service for asynchronous updates?

(I'm sorry for not being so clear in my first post) Here is the situation: I have data that is to be refreshed from the Internet. Let's call it Model. What I want to do: Basically it sounds like an MVC model, where the Model is also kept persistent in local (private) storage. The Model and its associated methods are application-wise. T...

JBoss MBean service can't be stopped normally?

I'm trying to build a service that can be start and stop automatically when start/stop jboss. The following is the service structure of my service: public class SnmpAgent extends ServiceMBeanSupport implements SnmpAgentHandler,SnmpAgentMBean public interface SnmpAgentMBean extends org.jboss.system.ServiceMBean And my jboss-service.xml...