senseobservationsystems/sense-android-library — pull request #85 by tedschmidt (2013-10-29 08:53:11+00:00)
Title: Fix restart app on service crash

When the sense services crashes it restarts, but a lot of applications have subscribed data consumers to process data coming from a data producer (i.e. cortex sensors) . This fix start the main application when the sense service is started to ensure that the data consumers are set. Also on boot the main application will be started if the sense service is started. The main application should handle the start intents and go to the background if necessary.
@pimnijdam could you QA and merge.

To test whether the application is started when the sense service crashes, you can add this to the service onCreate function:
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage(getApplicationContext().getPackageName());
startActivity(LaunchIntent);