SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. canvas.drawARGB(255, 0, 0, 0);
  2.    
  3. @Override
  4.     public void run() {
  5.         while (mPlaying) {
  6.             Canvas c = null;
  7.             try {
  8.                 c = mSurfaceHolder.lockCanvas(null);
  9.                 synchronized (mSurfaceHolder) {
  10.                     if (mPlaying == true) updatePosition();
  11.                     doDraw(c);
  12.                 }
  13.         } finally {
  14.                 if (c != null) {
  15.                     mSurfaceHolder.unlockCanvasAndPost(c);
  16.                 }
  17.             }
  18.         }
  19.     }
  20.    
  21. if your android:targetSdkVersion="12" or less
  22.      android:configChanges="orientation|keyboardHidden">
  23.  
  24.       if your  android:targetSdkVersion="13" or more
  25.   android:configChanges="orientation|keyboardHidden|screenSize">
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top