Use Android Auto (Android Car) with Titanium SDK.
For Apple CarPlay visit https://github.com/hansemannn/titanium-carplay/
- Add this to your tiapp.xml
<uses-sdk android:minSdkVersion="23" /> <application> <meta-data android:name="com.google.android.gms.car.application" android:resource="@xml/automotive_app_desc"/> <meta-data android:name="com.google.android.gms.car.notification.SmallIcon" android:resource="@drawable/carIcon"/> </application>
- create app/platform/android/res/xml/automotive_app_desc.xml
<automotiveApp> <uses name="template"/> </automotiveApp>
-
Download Android Auto simulators and head unit. Use Android Studio for this:

-
Attach your phone and run
[android sdk folder]/extras/google/auto/desktop-head-unit --usb
- createListTemplate({})
- title (string)
- type (string): "list" or "grid",
- sections (array): Array of objects with title, items:[{text},{text}]
- createMessageTemplate({})
- title (string)
- text (string)
- createToast(String) - will display a toast message on the car display
- click
var car = require("ti.car");
car.createListTemplate({
title: "ti.car demo",
sections: [{
title: "List section",
items: [{
text: "Titanium SDK"
},
{
text: "Android Auto"
},
{
text: "TDemo"
}
]
}]
});
car.addEventListener("click", function(ev) {
alert(ev.index);
car.createToast("You clicked: " + ev.index);
})car.createMessageTemplate({
title: "ti.car demo",
text: "Hello from Titanium SDK"
})
