Skip to content

Instantly share code, notes, and snippets.

@jgimenez
Created September 9, 2013 08:57
Show Gist options
  • Save jgimenez/6493182 to your computer and use it in GitHub Desktop.
Save jgimenez/6493182 to your computer and use it in GitHub Desktop.
package cat.mobilejazz.android.system;
public class AndroidFlavors {
// http://stackoverflow.com/questions/8309624/detect-app-is-running-on-kindle-fire
public static boolean isKindleFire() {
return android.os.Build.MANUFACTURER.equals("Amazon")
&& (android.os.Build.MODEL.equals("Kindle Fire")
|| android.os.Build.MODEL.startsWith("KF"));
}
// http://supportforums.blackberry.com/t5/Android-Runtime-Development/How-to-detect-if-the-Android-app-is-the-Blackberry-repackaged/td-p/2380029
public static boolean isBlackBerry() {
return java.lang.System.getProperty("os.name").equals("qnx");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment