service

Can I use a WCF RESTful service from Silverlight?

I have a WCF RESTful service using the WebHttpBinding and I want to know if I can use this in Silverlight 3 without any modifications? ...

How do I send some data (eg. a String) from my Activity to a Service ...in Android ?

Usually, I putExtra inside an Intent to transfer stuff between Activities. But it seems like I can't do this with a Service? Bundle extras = getIntent().getExtras(); That doesn't work for a android Service. How do I send a string from an Activity to a Service then? ...

Android Services

Hi, i have a question. I'm developing an Android Application. Actually, i have a thread in background that makes request to an external API in order to get data when the users clicks in different parts of the app. My doubt is if this "thread" would be better if i implemented it as a service instead of a Runnable class. Thanks ...

Using a remote PHP service with Flex (Flash Builder) AIR Application?

Hello, I'm developing a Adobe AIR application using Flash Builder 4. This app needs to access a remote PHP service which is being hosted on a remote web server. I am having troubles figuring out how to add a PHP data service which uses a remote service. I can add the PHP data service in Flash Builder as a service hosted on localhos...

How to kill a Service by another Activity?

Activity 1 starts a Service, using the standard Intent. Activity 1 starts Activity 2. Then, Activity 1 gets finished(). Now, there's only Activity 2. How does Activity 2 kill the Service, since that Intent was generated in Activity 1? I don't want to pass the Intent everywhere... ...

Android - Using method from a Service in an Activity?

I have the folowing method in a Service in my appplication: public void switchSpeaker(boolean speakerFlag){ if(speakerFlag){ audio_service.setSpeakerphoneOn(false); } else{ audio_service.setSpeakerphoneOn(true); } } So my question is whats the best and most effective way to be able...

Versioning in Web Service and override the WSDL URL from Webservice Name.

One of our webservice has been implemented with version attribute in the wsdl.(wsdl having two ports in a single service). This is currently running fine in the RA2 LWJ environment. We are in the process of migrating from RA2.0 (LWJ with Sun application Server) to RA3.0 (WAS). In Sun application server, sun-jaxws.xml and web.xml were us...

ASP.NET Parallel Web Service Calls

Hello, I have an aspx page which reads items from an SQL DB and displays them on a GridView. For every item located in DB there are several metadata associated with it which can be retrieved by making a Web Service call per item in the GridView. What I want to do is to make concurrent calls to the web-service (in order to save time from ...

Android: Get an instance from a service running

Hi, i have a service running in background. I start it from an Activity, but i want to recovery an instance of that service from other activity (in the same app) in order to call one method. Is it possible? Thanks ...

Remotely restart a linux service from local Windows or Mac machines

Sometimes my media server does not update its database, the only way to fix it is to restart the daemon. I would like users to be able to simply run an executable or script to do so without revealing any login information to them (which might result in inadvertent headaches). I feel the easiest way to do this would be to have an exec...

How does a Service communicate with its Activity? How can a Service call a method in the Activity, which started that Service?

Suppose I have an Activity that's a list. It calls a Service when this Activity starts. The Service will do background stuff--download, parse, and fill the list. My question is this: How can the Service communicate with the Activity? How can I call a method in the Activity, from the Service? (I'm new to OOP) The Service is started lik...

How do I bind this service in Android?

This is the code in my Activity. Initiate an Intent, then a Connection, right? hello_service = new Intent(this, HelloService.class); hello_service_conn = new HelloServiceConnection(); bindService( hello_service, hello_service_conn, Context.BIND_AUTO_CREATE); But my question is...what goes inside the Connection? class HelloServiceC...

Do you know of a codepad/ideone/etc system that I can host internally for a commercial product for free?

I have a product in mind that would benefit from third-party developers being able to hook into the product with their own custom code. My product would call the developer's code. The trick of course is how? Embedding the code is a terrible idea as it is completely unsafe. A malicious developer could do all sorts of Bad Things. I could ...

Android bindService problem

Hi, i have a problem with bindService. In my Activity i have the following code: private ServiceConnection mConnection = new ServiceConnection() { public void onServiceConnected(ComponentName className, IBinder service) { mService = IPrimary.Stub.asInterface(service); } public void onServiceDisconnec...

I don't know when to use a Service or AsyncTask or Handler

Can someone tell me the TRUE difference? ...

Can't access web service when connected to the network :: HTTP 407

Hi All, I have a console application that communicates with a web service. Both of them are on the same machine. When I am accessing the web service with the LAN disabled, it connects without a problem. But if the LAN is enabled and connected to our office network, I receive this error: "HTTP 407 Proxy Authentication required - The IS...

What is the most efficient way to update a server database?

I have a database in a server. Around 100 client PCs are connected to it from different locations. Now these clients are inserting data in this database within an interval of 10 seconds. Now what is the most efficient way to do this? I can open connection from every client pc to the server database. OR I can have a web service in the s...

UDPClient Receive method not working in a service

I've been experimenting the UDP sending and receiving in C# and have a strange issue. The code works fine in a console app, but the client.Receive method is blocked when I try to use the exact same code in a Service. The Service runs normally and doesn't abort, and I have logging writing to a text file, so I know it gets to the Receive...

Problem With My Android Service Please Help!

All I want to do is simply control background music in my app through a service so I am able to start it and stop it from any activity. I have everything set up perfectly when I tell the service to Toast when it is started and destroyed but as soon as I put the media playin in there instead It starts fine and starts playing the music bu...

Android Service controlling MediaPlayer

All I want to do is simply control background music in my app through a service so I am able to start it and stop it from any activity. I have everything set up perfectly when I tell the service to Toast when it is started and destroyed but as soon as I put the media playin in there instead It starts fine and starts playing the music bu...