Code example for DisplayMetrics

Methods: getMetrics

0
 
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
		 
		metrics = new DisplayMetrics ();
		getWindowManager().getDefaultDisplay().getMetrics (metrics);
		 
        // Pre-load these, so the c++ knows where to find them 
        ::foreach ndlls:: 
           System.loadLibrary("::name::"); 
         ::end:: 
        org.haxe.HXCPP.run("ApplicationMain"); 
 
        mView = new MainView(getApplication(),this); 
 
        setContentView(mView); 
		 
		sensorManager = (SensorManager) 
			activity.getSystemService(Context.SENSOR_SERVICE); 
Contextual code suggestions in your IDE  Get Codota for Java