how to detect driving mode in android using java code
<p>Hi i want to develop a app which is able to detect that phone is in driving mode. 
i dont know any idea about it. 
i do lot of googling but all link show driving mode option that available in android phone. (jelly version). 
i dont get any idea for develop it. 
how can i do this in my app. 
is there is any api for driving mode?</p>

<p>i want that feature in my app as like</p>

<p><a href="https://play.google.com/store/apps/details?id=com.picitup.iOnRoad&amp;hl=en" rel="nofollow">https://play.google.com/store/apps/details?id=com.picitup.iOnRoad&amp;hl=en</a></p>

<p>feature- 24/7 protection with Automatic Driving Detection</p>
