I'm working on an Android TV project which is a leanback project basically.
I want to show an alert dialog similar to the permission dialog in android tv apps. see the image.
I tried adding normal AlertDialog like this:
AlertDialog.Builder alertBuilder = new AlertDialog.Builder(context);
alertBuilder.setCancelable(true);
alertBuilder.setTitle("Permission necessary");
alertBuilder.setMessage("External storage permission is necessary");
AlertDialog alert = alertBuilder.create();
alert.show();
but that doesn't help. Can anyone show me the way to show similar AlertDialog in Android TV app?