Code example for Thread

Methods: join

0
    /* See: SurfaceHolder.Callback */ 
    public void surfaceDestroyed(SurfaceHolder holder) {
        requestQuit(); 
        try { 
            mMediaPlayer.release();
            mAppThread.join();
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    public void doLaunchVideo() { 
        mLaunchVideo = true;
    } 
    public void doNotLaunchVideo() { 
        mLaunchVideo = false;
    } 
 
    public void initialize_nativecode() 
    { 
        String mTestShellLib = "/data/data/" +