"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

@@ -69,8 +69,8 @@ public class BriarActivity extends RoboFragmentActivity {
}
private void startAndBindService() {
startService(new Intent(BriarService.class.getName()));
bound = bindService(new Intent(BriarService.class.getName()),
startService(new Intent(this, BriarService.class));
bound = bindService(new Intent(this, BriarService.class),
serviceConnection, 0);
}