Nov 1, 2018 03:25
Thanks. And again, I appreciate you taking your time to try to help :)
Nov 1, 2018 03:25
So, I'd kindly request that you delete your answer, as

"You need to take foreground permission in android 9 pie and rest u can create foreground service "

Is not a solution to this problem.
Nov 1, 2018 03:24
I can't reproduce this on my devices either. But hundreds (maybe thousands now) of users can
Nov 1, 2018 03:23
But, no. I've reported this issue to Google:
https://issuetracker.google.com/issues/113122354

And it's assigned, so I'm not really worried about investigating further.
Nov 1, 2018 03:22
Yeah, it could be custom OEM problems. But given that a Senior Software Engineer at Google commented and said 'we're seeing this issue in-house', I figure that it's probably happening on many different ROMs
Nov 1, 2018 03:21
Also, sorry I've been referring to you as 'Ed'. My mistake! I have someone I regularly chat with called Ed, and I misread 'Er.;!
Nov 1, 2018 03:20
I'm not really sure how that's relevant?
Nov 1, 2018 03:20
So, unfortunately, starting the service in the foreground isn't a good solution to this problem. It might be a workaround, but the real issue is that Android thinks the app is backgrounded, even after the Activity is resumed.
Nov 1, 2018 03:19
This is exactly the problem. The app isn't in the background (because onResume() has been called), but the Android Platform thinks that the app is in the background.
Nov 1, 2018 03:18
In response to your comment:

>Ya if app is in foreground then u dont need foreground services. but i saw that it was in background when u tried to start the service according
Nov 1, 2018 03:18
So, just to be clear, the only edit I made to the question was changing wrappedContext to this, because it was confusing some readers.
Nov 1, 2018 03:15
Just wondering if we could chat about this issue?
Nov 1, 2018 03:15
Hi @Ed
Nov 1, 2018 03:15
Thanks Ed. The only change to the original question was for clarity. You can view the edits if you like. The description and problem statement has not changed at all. Appreciate your assistance, but unfortunately your answer does not resolve the issue. The 'app is in background' is exactly the problem here - why is Android reporting that the app is in the background, after onResume() is called? The answer is not 'because I didn't call startForeground()`' This is due to a platform bug by the looks of it. See issuetracker.google.com/issues/113122354
Nov 1, 2018 03:15
A foreground service is not required while the app is running in the foreground. Thanks for the suggestion, but unfortunately this doesn't resolve the question at hand.
Nov 1, 2018 03:15
The question relates to running a regular Service while the app is in the foreground. Your answer is about a Foreground Service running while the app is in the background.
 

Android

Don't say hi. Don't ask questions. Don't have fun. Don't do an...
Nov 23, 2015 01:06
51 :(
Nov 23, 2015 00:58
Yeah, I can't reliably use streaming services.. I commute to work like 2 hours each way, and for about 65% of the time I've got no service. Though they do tend to offer pretty good caching systems.
Nov 23, 2015 00:57
Even I want to switch to Spotify. But no, I will go down with the ship.
Nov 23, 2015 00:56
Yeah, you and everyone else.
Nov 23, 2015 00:56
How's it going?
Nov 23, 2015 00:56
Woohoo!
Nov 23, 2015 00:53
I have read and understood the rules
 
Aug 28, 2014 05:08
I apologise for insulting you, and I'll refrain from profanity in the future.
Aug 28, 2014 05:08
I assume you're pointing me to the help centre due to my offensive language. I've been there before. Generally the quality of my answers is much better, but in this case I thought I'd stumbled on an easy fix.
Aug 28, 2014 05:07
I don't have any problem with you at all, I appreciate you taking the time to talk this out
Aug 28, 2014 05:06
So, moving on.... I found it interesting that OP thanked me for attempting to answer his question
Aug 28, 2014 05:06
But look, maybe you don't see it that way. And you know what? I'm gonna forgive you for it.
Aug 28, 2014 05:05
Oh you've definitely been condescending
Aug 28, 2014 05:05
So you can say "you can't take a frank and direct discussion of your post", yet I can't say "get off your high horse"
Aug 28, 2014 05:04
I have not accused you of being rude
Aug 28, 2014 05:04
Get off your high horse mate
Aug 28, 2014 05:04
What would you call the discussion we've just had this last 10 minutes?
Aug 28, 2014 05:03
Are you serious?
Aug 28, 2014 05:02
Maybe you need to review your own approach
Aug 28, 2014 05:01
?
Aug 28, 2014 05:01
Patronising
Aug 28, 2014 05:01
Condescending
Aug 28, 2014 05:01
I found your comments to be disparaging and reacted to that. And in turn you reacted to mine.
Aug 28, 2014 05:00
Maybe your browser is doing something strange? At the time, who knew?
Aug 28, 2014 05:00
either*
Aug 28, 2014 05:00
I don't think you acknowledge that "Both links do exactly the same thing. Your browser must be caching it strangely or something." isn't a fair statement from you wither
Aug 28, 2014 04:59
At the time I wrote that answer, it wasn't a bad one.
Aug 28, 2014 04:59
This led me to believe that there was an issue with the certificate (certificate issues or some sh*t), and that omitting the 's' would solve OP's problem.
Aug 28, 2014 04:58
When I tried "http://cub.com/content/dam/B2C/enterprisebannerwebsites/Cub/CUB_WK25_HP_BackToS‌​chool.jpg", I was taken straight to the image
Aug 28, 2014 04:58
When I did so, I did not see the image, I got a certificate problem.
Aug 28, 2014 04:58
"https://cub.com/content/dam/B2C/enterprisebannerwebsites/Cub/CUB_WK25_HP_BackTo‌​School.jpg"
Aug 28, 2014 04:58
Aug 28, 2014 04:58
I just want to tell you now exactly what happened, so you can see things from my perspective
Aug 28, 2014 04:57
?