What is the correct Device Definition for Google Glass (for a simulator in Eclipse or Android studio)?

后端 未结 3 2002
攒了一身酷
攒了一身酷 2020-12-25 14:30

Yes I will test on the actual device (when it arrives) but would be nice to know now:

How to setup a device definition so I can run an emulator that is something lik

3条回答
  •  既然无缘
    2020-12-25 14:50

    DisplayMetrics gives this output on Glass Explorer edition:

    DisplayMetrics{density=1.5, width=640, height=360, scaledDensity=1.5, xdpi=180.62222, ydpi=169.33333}

    So it does indeed look like hdpi.

    Also the screen size is small:

    ....
    else if ((getResources().getConfiguration().screenLayout &      Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_SMALL) {     
                   Log.d(TAG,"SMALL screen");
               }
    

    And it is "notlong"

提交回复
热议问题