Check whether is MIUI - Android Android OS

Android examples for Android OS:OS Version

Description

Check whether is MIUI

Demo Code


import android.os.Build;
import java.lang.reflect.Method;

public class Main{
    /**//from w  w w  .j ava2 s.  c  o  m
     * Check whether is MIUI
     *
     * @return
     */
    public static boolean isMIUI() {
        String miuiVer = PropertyUtils.getQuickly(
                "ro.miui.ui.version.name", null);
        return miuiVer != null && miuiVer.contains("V");
    }
}

Related Tutorials