@Override
 public void onCreate(SurfaceHolder surfaceHolder) {
   super.onCreate(surfaceHolder);
   mSurfaceView = new WallpaperGLSurfaceView(GLWallpaperService.this);
   setTouchEventsEnabled(true);
   mIsScreenOn = ((PowerManager) getSystemService(POWER_SERVICE)).isScreenOn();
 }
Esempio n. 2
0
 @Override
 public void onCreate(SurfaceHolder surfaceHolder) {
   /* 初始化四個預存的Bitmap物件 */
   bm1 = BitmapFactory.decodeResource(getResources(), R.drawable.d1);
   bm2 = BitmapFactory.decodeResource(getResources(), R.drawable.d2);
   bm3 = BitmapFactory.decodeResource(getResources(), R.drawable.d3);
   bm4 = BitmapFactory.decodeResource(getResources(), R.drawable.d4);
   super.onCreate(surfaceHolder);
 }
Esempio n. 3
0
    @Override
    public void onCreate(SurfaceHolder surfaceHolder) {
      super.onCreate(surfaceHolder);

      // FIXME: investigate
      // surfaceHolder.setFormat(PixelFormat.RGBA_8888);

      mPrefs.registerOnSharedPreferenceChangeListener(this);
      seh.register();
    }
    @Override
    public void onCreate(SurfaceHolder surfaceHolder) {
      super.onCreate(surfaceHolder);
      setTouchEventsEnabled(true);
      surfaceHolder.setSizeFromLayout();
      surfaceHolder.setFormat(PixelFormat.RGB_332);

      DisplayMetrics metrics = new DisplayMetrics();
      ((WindowManager) getApplication().getSystemService(Service.WINDOW_SERVICE))
          .getDefaultDisplay()
          .getMetrics(metrics);
      mDensityDPI = metrics.densityDpi;
    }
 @Override
 public void onCreate(SurfaceHolder surfaceHolder) {
   super.onCreate(surfaceHolder);
   setTouchEventsEnabled(false);
   surfaceHolder.setSizeFromLayout();
 }
 @Override
 public void onCreate(SurfaceHolder surfaceHolder) {
   super.onCreate(surfaceHolder);
   setTouchEventsEnabled(true);
 }
 @Override
 public void onCreate(SurfaceHolder surfaceHolder) {
   super.onCreate(surfaceHolder);
   mHolder = surfaceHolder;
   mHolder.addCallback(this);
 }
 @Override
 public void onCreate(SurfaceHolder surfaceHolder) {
   super.onCreate(surfaceHolder);
   // Log.d(TAG, "GLEngine.onCreate()");
 }
 @Override
 public void onCreate(SurfaceHolder surfaceHolder) {
   super.onCreate(surfaceHolder);
 }