Code example for ImageView

Methods: invalidate

0
            mProcessInProgress = false;
            return true; 
        } 
 
        protected void onPostExecute(Boolean result) {
            mFormatView.invalidate();
        } 
 
    } 
 
    private long mTiming[] = new long[50];
    private int mTimingSlot = 0;
 
    public void onPreviewFrame(byte[] data, Camera camera) {
        if (mProcessInProgress || mState != STATE_PREVIEW) {
            mCamera.addCallbackBuffer(data);
            return; 
        } 
        if (data == null) {
            return; 
        }