singleinstance

Android singletop singleinstance and singletask

Hi I've an design issue in implementing different types of launchmode for different activities. I've 5 Activities. VideoList VideoDetail FavoritesList VideoSearch VideoPlayer When the user starts the app it goes to VideoList that displays list of videos. Clicking on any of the Videos take them to VideoDetails.There are two button i...

Easiest way to find previous instance of an application

I have rewritten a VB6 application in Delphi. It should have only one instance running. How can I do this with minimum of code? In VB6 we just have to use one single line of code > If App.PrevInstance Then 'Take some action End If On goggling I did find a solution but it is very length and we have to mess with .drp file....

How to call a WCF singleton service within a WCF singleton service without hanging?

I have two services, one that calls another. Both are marked as singletons as follows: [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)] public class Service : IService And I set these up with a ServiceHost as follows: ServiceHost serviceHost = new ServiceHost(singlet...

Using an empty file to have one application instance

There's probably other ways of doing this but I'd like to use an empty file to have one instance of an application running at a given time. This would be done by creating the file when the application is launched and have other application instances exit as soon as they detect the file. The trouble with this approach is that the file ca...

startActivityForResult not working properly with launchMode singleInstance

Hi, I'd like Activities on my application's Activity stack to only have one instance. I have several screens which are ListActivities and I'd like to not go through the pain and suffering of updating the lists in a previous instance of the ListActivity when another instance of that ListActivity is changed (added to, edited, removed fro...

Single instance in the cluster with WF 4 and AppFabric

Hi, I am trying to do a single instance workflow with WF4 and AppFabric. I want just one instance of a workflow running in the cluster. I have tried a biztalk style: a method (CallService()) that creates the instance, and the same method in other receive activity (CallService()) that do not have the cancreateinstance checked. (I think...