service

how to bind a remote service that is installed on my android device?

hi there! i have coded this service, that computes stuff and i want other applications to be able to bind this service, i.e. i want to enable other programmers to communicate with this service. problem is, this has to work without these other programmers to get access to the source code. just the (installed) apk with the remote service...

Can I use SVCUTIL to create a Web Service reference for .NET 2.0 (i.e. NOT for a WCF Client)

Hi We have a WCF service exposing a basicHTTPBinding endpoint but need to consume it from a .NET 2.0 application. We have the WSDL files available. Can I use SVCUTIL to generate a web service reference compatable with .NET 2.0? Thanks ...

Android dialog management

Hi all! I'm developing an android app (if you want more info http://www.txty.mobi) and I am having some problems with dialogs management. I'm quite new to Android so the way I'm doing things completely wrong. If the case please just say so pointing me to the right documentation to follow. Background: The main blocks of the app so fa...

building rpm for Fedora:13 on openSUSE Build Server

Hi, I've been trying to build the latest package of "rpm" for Fedora 13 in the openSUSE Build Service, ( totally unmodified, taken directly from F-14 ) but for some reason, after building, when it gets to all my other packages, the OBS stops because installing the packages gives me a "cpio" error. Did I do something wrong, or is there s...

creating a service with sc.exe; how to pass in context parameters

When using sc create ServiceName binPath= "the path", how can arguments be passed to the Installer class's Context.Parameters collection? My reading of the sc.exe documentation is that such arguments could only be passed on the end of binPath, but I have not found an example or been able to successfully do this. ...

Services 32bit dlls on 64bit machine

Hi there! I've built and installed my service from vs2010 onto a 64bit machine. My problem comes in when my service references 32 bit dlls (spssio32.dll to be precise) - I get the error in my event viewer : "System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x800700...

WCF Large interface at a single endpoint address

I have a wcf service that exposes quite a large number of service methods on a single endpoint address. Up to now, all service methods are implemented in a single service contract class. This service contract class implements several service contract interfaces. Now I would like to split the implementation of of the service contract meth...

android Service needs to handle connection failure - how?

I've got an app that retrieves data on a regular basis from the internet (3 times a week). The data on the server is available via an XML api (which I built) and which works without any problem. However, some of the users handsets are not on/connected when the call is made. What is the best way to handle this lack of net connection fa...

What is the equivalent of an EJB 3.0 Session Bean in Spring?

Is it as simple as creating a POJO with @Transactional methods? ...

Opting for a messaging system over web services such as SOAP

I'm working on a project at the moment that involves building a system in conjunction with another technical partner. The system will provide "monitoring" type functionality and operations will be long running with numerous "events" being returned and processed / returned to the user. My initial reaction was to build a web service that...

android: how to bind a sub-class to a service

I have a class the extends relativelayout. This class is inflated and added to a view by an activity. This class needs information from a service that I've created. What I'd like to do is bind the class to the service on its own thread but I'm not sure how to do it. When I try and call bindservice in the class I get a "method is not appl...

Android Activity check service to start another activity

Hi. I need to made an activity (without layout) that on start check if a service is running. if it is true it starts Activity2, if it false it starts Activity1. I tried with this code: public class FirstActivity extends Activity{ private final Intent serviceIntent = new Intent(ServiceConnected.class .getName())...

How to reuse service layer in WCF and standard ASP.NET scenarios

I'd like to be able to create standard POCO service that I can use in two distinct workflows: in-process i.e. consumed by my ASP.NET webforms application remotely via an exposed WCF endpoint to be consumed by other applications Is there a way to re-use the same service and its return data types in both scenarios above? Ideally, my co...

When using msbuildtasks UninstallAssembly the service is only queued for deletion and server needs restart

I am setting up a project to run under the teamcity integration server on windows server 2003 (with sp2). The integration tests run using msbuild with the latest version of msbuildtasks v1.2.0.306. All code is build with .net 2.0. In our build.xml file we remove all the services used by the systems, rebuild them all recreate them and th...

Creating an Android Service that cannot be killed

I am trying to write an app that cannot be killed by a user or another application. I understand this goes against what Android has designed for its platform, this is more of a proof of concept. The plan is two have two apps, app1 and app2. When app1 starts it will start app2 and then bind onto app2, when app2 starts it will make sure...

simple spring app - why use service layer?

hi. i looked at the example on http://solitarygeek.com/java/developing-a-simple-java-application-with-spring/comment-page-1#comment-1639 because i'm just getting started with spring. And, i'm trying to figure out why the service layer is needed in the first place in the example he provides. if you took it out, then in your client, you ...

How to run a retry when download fails in AsyncTask using AlarmManager

Hey guys, I use an AlarmManager to run a Service which tries to download a file from the web. If it fails I'd like to retry that Service in 5 minutes. Inside the Service I run an AsyncTask to run my code. As far as I know the only way I can tell if it failed or not is from the onPostExecute(). What is the best way of implementing a re...

When I call Toast from inside a service -a new tab with the message "Source not found" and "Timer.class" in tab title shows up

Hello, I am using Eclipse and running the App in debug mode. I have a class - AAStartsHere, derived from TabActivity. This derived class launches a service (AAservice). AAService setups a Timer/TimerTask AACallback. From inside this callback I setup a Toast using Notification. When AAcallback calls the Toast, the parameters passed to Toa...

How to wait periods of 30 second to run a service

I, i have a service and i want that once it started, it performs is work every 30 seconds. How can i do that? Tnk Valerio ...

what is the prefered way to communicate between applications on android (service vs. intents)

What is the difference between 2 ways of interaction between applications on android: 1. implementing service in app #1 and using it in app #2. 2. handling intentions and posting answer intention. Interactions are supposed to be asynchronous. What are pros and contras for each? ...