android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
changeset 12008 91f9b8f22b17
parent 12004 757d81897470
child 12009 5b41aa10b12f
equal deleted inserted replaced
12007:ecfb6a793c30 12008:91f9b8f22b17
   696     }
   696     }
   697 
   697 
   698     /**
   698     /**
   699      * This method is called by SDL using JNI.
   699      * This method is called by SDL using JNI.
   700      */
   700      */
       
   701     public static boolean isChromebook() {
       
   702         return getContext().getPackageManager().hasSystemFeature("org.chromium.arc.device_management");
       
   703     }    
       
   704 
       
   705     /**
       
   706      * This method is called by SDL using JNI.
       
   707      */
   701     public static DisplayMetrics getDisplayDPI() {
   708     public static DisplayMetrics getDisplayDPI() {
   702         return getContext().getResources().getDisplayMetrics();
   709         return getContext().getResources().getDisplayMetrics();
   703     }
   710     }
   704 
   711 
   705     /**
   712     /**