Over Christmas 2015, I picked up a $45 Android tablet with the intentions of mounting it into my 2010 Honda Accord as a media device. For now, I’ve used some black Velcro to mount it but would eventually like to explore the 3d printer realm and create a custom mount for it. I disabled many of the pre-installed applications, installed Spotify (a music subscription service), and installed a neat application called Tasker.
I used Tasker in conjunction with AutoInput which essentially mirrors any programmed key-presses by searching for the internal UI shell command. All of this can be accomplished without rooting. I purchased a USB charger for the center console power port in addition to a thin USB cable and 1/8″ cable. Luckily, my car turns off the power port automatically when the car is off, unlike some other domestic models. After about an hour of tweaking, I had a working in car entertainment device that would:
- On power/charging detection, would turn on the screen, open the Spotify app, wait 6 seconds, and Play music from the last specified playlist.
- On power/charging off, would pause Spotify, wait 3 seconds, and dim the screen. By leaving the app open, it syncs with my Wifi network when I pull into the driveway nightly.
- From 7am to 5:30pm, would turn the screen brightness to max setting.
- From 5:31pm to 6:59am, would turn the screen brightness to min setting.
A helpful guide I followed for programming Tasker is here, with the exception of the input commands, as those were taken care of by the AutoInput application. The most important thing to note is the use of wait times in Tasker, so that the device is provided with enough time to execute each operation and not ignore overlapped operation requests.
The latest development with this project, is that under extreme cold temperatures, the tablet greatly misbehaves. I need to probably program the tablet to turn off based on a weather forecast. We had a 10F low and I found that it had factory reset itself after being left in the car all night, which means that I need to reprogram it entirely. Avoiding that scenario, I will probably look for a custom recovery which would allow me to take a full image backup to keep on the Micro SD card.
The tablet I purchased can be found here. (as of Jan 2016)