is Kindle Fire - Android android.system

Android examples for android.system:Os Version

Description

is Kindle Fire

Demo Code

import android.os.Build;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Main{

    public static boolean isKindleFire() {
        try {//from w ww.ja  v a2  s  .  com
            return Build.MODEL.toLowerCase().contains("kindle fire");
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }

}

Related Tutorials