I want to restart my Service automatically if the application crashes. My ideas are:

1:
a BroadcastReceiver when the apk crashes and automatic restart the Service

```
if("android.intent.action.SOMETHING".equals(intent.getAction()))
  {
     Intent serviceLauncher = new Intent(context, Service.class);
     context.startService(serviceLauncher);
  }

```

2: 
with an uncaughtException(), but i dont know to handle that