ryanheise
ryanheise
OK, this has to do with starting a foreground service from the background which is something I've not implemented yet since there are some restrictions on the context from which...
So what is the full test scenario in terms of launching the app, clicking this and that, then running into the error? Do we know if the activity is at...
I expect this can be fixed by using `startForegroundService`. In `AudioService.java`: ```java private boolean enterPlayingState() { // CHANGE THIS TO startServiceForeground startService(new Intent(AudioService.this, AudioService.class)); if (!mediaSession.isActive()) mediaSession.setActive(true); acquireWakeLock(); mediaSession.setSessionActivity(contentIntent); internalStartForeground();...
Historical reasons which predate the announcement of the `startForegroundService` API, combined with the fact that after it was introduced I didn't actually need it for my own use cases. I...
Perfect! By the way, I'm happy for you to share that fix in the form of a pull request and merge it (if you'd like to). Otherwise, I can add...
I don't see any harm in replacing `startService` by `startForegroundService`, all else being equal. In the current code `startService` is **always** called before `startForeground`, and there are no conceivable variations...
The only requirement I'm aware of is that you have an ANR's worth of time after calling `startForegroundService` before you must call `startForeground`, and we meet that requirement. I haven't...
Related to #309
I'm not sure myself what the expected behaviour is. I believe they are a "hint" to the client on how to display things but the client is free to use...
The relevant code is in `buildNotification`: ```java MediaDescriptionCompat description = mediaMetadata.getDescription(); if (description.getTitle() != null) builder.setContentTitle(description.getTitle()); ``` And the `getDescription` method itself: https://android.googlesource.com/platform/frameworks/support/+/39adac1bf95746faf784fba67b5545ae2b66374b/v4/java/android/support/v4/media/MediaMetadataCompat.java#395 (the exact behaviour of which is heuristic...