Foreground Service support in 3rd Party App on Android Automotive OS

263 views
Skip to first unread message

Sunil Bhatia

unread,
May 5, 2021, 10:18:18 AM5/5/21
to Android Automotive OS Discussion Group
Hi Automotive Team,
I have one query regarding implementation of foreground service for an Android app for Automotive.
My Use case :
My app  want to track the Car speed in the background on Android Automotive.
Is this Supported by Android Automotive?
Looking forward to your reply.

Thanks and Regards
Sunil Bhatia


Android Automotive OS Discussion Group

unread,
May 5, 2021, 10:27:09 AM5/5/21
to Android Automotive OS Discussion Group, sunilbh...@gmail.com
Please refer to this documentation on this topic https://developer.android.com/guide/components/foreground-services
What you can / cannot do in the background via foreground services is an area that is evolving with android release. 

Sunil Bhatia

unread,
May 5, 2021, 11:08:31 AM5/5/21
to Android Automotive OS Discussion Group
Hi Automotive team, 
Thanks for your response, it is much appreciated. 
As I understand from your response, I can use background services or foreground services in the same way as I used to develop apps for Mobile.
Or 
Is there any difference in behavior on Android Automotive. 

Please confirm. 
Your response is much appreciated. 

Android Automotive OS Discussion Group

unread,
May 23, 2021, 12:50:18 PM5/23/21
to Android Automotive OS Discussion Group, sunilbh...@gmail.com
correct, the standard android OS rules apply here as well (depending on which API level you are targeting your app for). 

Sunil Bhatia

unread,
May 25, 2021, 12:37:10 PM5/25/21
to Android Automotive OS Discussion Group, Android Automotive OS Discussion Group, Sunil Bhatia
Thank you so much for your clarification
Reply all
Reply to author
Forward
0 new messages