I\'m an Android developer and I\'m trying to develop a custom Android Auto app, that does a simple mirroring of the phone screen. I know that currently the API are only availabl
Create a service like this:
public class HelloWorldService extends CarActivityService {
@Override
public Class extends CarActivity> getCarActivity() {
return HelloWorldAutoActivity.class;
}
}
Then add the service to your manifest like this:
Finally create a xml file called automotive_app_desc under your res folder:
Your HelloWorldAutoActivity.class will work as your MainActivity.