我不会在我的应用程序中播放视频......我编写的代码如下:
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;
public class MainActivity extends Activity {
public TextView counter = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.welcomepage);
videoView = (VideoView)findViewById(R.id.VideoView);
Log.e("ok","ok");
videoView.setVideoPath("animationgif/vid.flv");
videoView.start(); }
}
但它不起作用!有没有人有任何解决方案PLZ!