vendredi 23 janvier 2015

Android SDK, Check if device is Amazon-FireTV

Hello everyone who is reading this! What i am trying to do is write a simple piece of code that will execute some other code if true. What i want to do is check if my app is running on the 'Amazon Fire-TV (BOX, not the Fire-TV stick)' i think it would not be that hard to do but i am guessing it would be something like this?



String osName = android.getSystemOS();

if(!osName.equals("AMAZON FIRE-TV")){
Toast.makeText(MainActivity.class, "This app may not be compatible with your device..., Toast.LENGTH_LONG").show();
...

}


And yes you are hearing this from a noob at coding... Id be very happy if you could try to solve my problem, Thanks -Antonio





Aucun commentaire:

Enregistrer un commentaire