当前位置:编程学习 > wap >>

视频播放完成后如何跳转到新的activity

--------------------编程问答-------------------- 在里面把对象释放一下mVideoView.release(); --------------------编程问答-------------------- onCompletion方法执行了吗? --------------------编程问答-------------------- onCompletion方法执行了吗?

执行了 --------------------编程问答-------------------- 在里面把对象释放一下mVideoView.release();

这个类中没有release()这个方法

下面是这个类的完整代码

package com.ly.a16.screen;


import android.content.Context;
import android.util.AttributeSet;
import android.widget.VideoView;

public class MyVideoView extends VideoView {
public static int WIDTH;
public static int HEIGHT;
public MyVideoView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    int width = getDefaultSize(WIDTH, widthMeasureSpec);

    int height = getDefaultSize(HEIGHT, heightMeasureSpec);

      setMeasuredDimension(width,height);

}
}
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,