Implement support for Android Auto - #3993
Conversation
Fixes openhab#3041 Signed-off-by: Danny Baumann <dannybaumann@web.de>
|
Implementation comments:
I'm open for improvement suggestions about
I've also thought about using
Once this is accepted, we probably need a release on the beta track in Play Store, since sideloaded apps don't appear in the AA launcher. |
|
Open issue I don't have a good idea for yet: Loading a different sitemap (e.g. after a server change) also counts against the 5 step limit documented here. This means that after moving back and forth a few times, the app will consume more than 5 steps and crash. This problem is worsened by sitemap selection screen (which counts as a separate step each time), but even if we'd do the sitemap selection on the phone the problem is there and just takes a few toggles more to appear. One option to remedy this may be to not listen for server changes, so that after changing servers one needs to reconnect to AA to reflect the change in the AA app. Not sure if this is acceptable? |
Signed-off-by: Danny Baumann <dannybaumann@web.de>
Signed-off-by: Danny Baumann <dannybaumann@web.de>
Maybe disable loading a different sitemap when moving? https://source.android.com/docs/automotive/driver_distraction/consume#DrivingState |
From my understanding,
Given all of those, I think we need to design our UX for the 5 step limit, no matter if parked or not. |
|
We could:
That way we shouldn't hit the limit, but no sub-pages might be an issue for some people. |
Makes sense - any UI recommendations? The current flow follows what we're doing for the app side, and I don't have a good idea yet that doesn't involve some kind of popup.
Doesn't help much, see last point.
I think there's a misunderstanding here. My |
|
@maniac103 this is an awesome feature, thank you! I would be highly interested in doing some beta testing and providing feedback. May I kindly ask if it would be possible to provide some debug APK or would I have to build it myself? |
Neither would work for getting it running in your car. For that it needs to be distributed in the Play Store. We can totally do that, I guess (a beta release, that is), but I don't think it makes a lot of sense as long as there's a high probability of crashing whenever the 5 step limit is hit (see above). We'll need some good idea to solve that one. |
|
One behavior I've noticed in several AA apps I've used is if you interact with the app a bunch of times (e.g. searching for a playlist in YT Music) it eventually pops up a pause preventing further interactions for a time before letting you continue interacting with the screen. I don't know for sure, but this feels realted to that 5 step limit. So maybe something similar would work here. |
I too have seen this after interacting with an app quite a lot. I forget which app it was... might've been Waze, or possibly one of the music apps, Pandora or Spotify. I don't have many suggestions. One thought was to have a configuration where you can specify the sitemap that you want to use for AA. I expect the sitemap I use in AA will be a lot smaller (and different) than my other sitemaps. Of course if an AA-specific sitemap is not specified it would allow sitemap selection the way it does now. |
Signed-off-by: Danny Baumann <dannybaumann@web.de>
Signed-off-by: Danny Baumann <dannybaumann@web.de>
Fixes #3041