It turns out that Nosfer was right; all I needed to do was make a & d startService() call next to my bindService() , and everything was fine.
Since multiple startService() calls do not call the constructor multiple times, they were exactly what I needed. (This is very lazy of me, but it works now. I donβt know how to check the running (and unrelated) service.) My code now looks like this:
Intent queueIntent = new Intent(getApplicationContext(), QueueService.class); bindService(queueIntent, mConnection, Context.BIND_AUTO_CREATE); startService(queueIntent);
See also Bind service to action in Android
user1499731
source share