7

Sending Message from SurfaceView to Activity using Handler

view full story
linux-howto

http://stackoverflow.com – Class VPADSurfaceView extends SurfaceView Context mContext; SurfaceHolder holder; Handler mDuration; private MediaPlayer mMediaPlayer; private int mVideoWidth; private int mVideoHeight; private String mvideoPath = "/mnt/sdcard/naveen.mp4"; private RandomAccessFile mRandomAccessFile; private boolean mIsVideoSizeKnown = false; private boolean mIsVideoReadyToBePlayed = false; static Bitmap mAddIcon; static SeekBar mSeek; public VPADSurfaceView(Context context, Handler handler) { super(context); this.mDuration = handler; this.mContext = context; this.h (HowTos)