"Implicit intents with startService are not safe" - use an explicit one.

This commit is contained in:
akwizgran
2014-03-04 14:22:19 +00:00
parent 3a01a04cbf
commit 39b7a97267
2 changed files with 2 additions and 4 deletions

View File

@@ -124,12 +124,10 @@ public class BriarService extends RoboService implements EventListener {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if(LOG.isLoggable(INFO)) LOG.info("Started");
return START_NOT_STICKY; // Don't restart automatically if killed
}
public IBinder onBind(Intent intent) {
if(LOG.isLoggable(INFO)) LOG.info("Bound");
return binder;
}