[Solved] How do we register a PCF Service Broker as reachable from two spaces in the same PCF Org (with org admin permissions)?

How do I register a Pivotal Cloud Foundry Service Broker to make it accessible from multiple spaces within the same Organization, if I have Org-level permissions? I don’t think you can do this. You’d need to be a platform admin/operator. Then you’d need to register the service broker with the platform & mark that broker … Read more

[Solved] Control an application from a service

For the Service -> Activity communication you can use LocalBroadcastManager, check this SO answer: Android update activity UI from service For the Activity -> Service communication you either start service and add extras to intent or have a bound service. Make sure you read this article: http://developer.android.com/guide/components/services.html 1 solved Control an application from a service

[Solved] Start and Close single Activity from BroadcastReceiver

You could try to directly kill an activity by calling a static method in that activity: Activity A should have a variable static ActivityA activityA; In onCreate state: activityA = this; and add this method: public static ActivityA getInstance(){ return activityA; } In activity B, call the fuction getInstance() ActivityA.getInstance().finish(); solved Start and Close single … Read more

[Solved] Download data from internet in background and concurrently share them among all activities. How?

Using the structure recommended by Nick Cardoso but with many changes to meet my case, i managed to solve the problem. here it is: class A extends Service { ArrayList arrayList = new ArrayList(); MyApplication app; void foo(){ new Thread (new Runnable (){ @Override public void run() { app = (MyApplication)getApplication(); While(true){ //get elements from … Read more