Req Handle Android ACTION_DOCK_EVENT actions to stop restart when docking device
#1
Does Kodi handle the Android Intent ACTION_DOCK_EVENT?

If not I would like for this to be added to Kodi.

https://developer.android.com/reference/...DOCK_EVENT


I have Kodi installed on a Sony Xperia Z tablet.

When I dock the tablet, Kodi shuts down.

Steps taken:
- Checked the various settings on the tablet itself, to see if there is anything that can be configured to stop this.
- Disabled the Android Daydream feature
- Made sure no other apps are doing anything crazy (including Sony's own SmartConnet app)

I also checked the Sony forum: https://talk.sonymobile.com/t5/Xperia-Z2...d-p/655103

Their support team have indicated that this is something that can be handled within Kodi itself:
- https://developer.android.com/guide/topi...gTheChange

Specifically by handling the dock event broadcast by Android.
- The specific event is documented here: https://developer.android.com/reference/...DOCK_EVENT

It would be nice to have a setting within Kodi to choose what Docking does, for example:

1. Do Nothing
2. Enter Full Screen
3. Other cool stuff...
Reply
#2
Well, docking is probably something that'd really need Kodi to restart, to have the docking station connectivity to be properly picked.
Now, the general issue is that, currently, Kodi does not save it's state, so you restart a new session...
Reply
#3
Thanks @Koying. I agree, that general issue you mention does make the case a lot worst... as you end up having to nav back to and play whatever you were watching.

I would add however that a setting on on what Kodi does by default when docking would be very useful.

For example, most of the time I would use the docking station just to charge the tablet, which is not something that Kodi would need to care about.
Having the 'Do Nothing' option would allow me to seamlessly transition from un-docked to docked, without interrupting what I am watching, and still allow it to charge.

When you consider that the whole point of docking it was so that I can continue watching due to low battery, having the video stop is pretty ironic Smile

Would be great if this can be handled with the option.
Reply
#4
MrMC is working on session saving, I heard, so there is hope...
Reply
#5
Amazing!

Hope MrMC can add a couple of settings of what to do when docked as part of that.

If you manage to add the 'Do Nothing when Docked' option I will uninstall all other video playing apps, whilst writing play store reviews on all stating that Kodi is just baddass!
Reply

Logout Mark Read Team Forum Stats Members Help
Handle Android ACTION_DOCK_EVENT actions to stop restart when docking device1