我将我的应用程序提交给了三星市场,但他们拒绝了它,说保持模式打开时视频不会暂停。
有没有人帮助我理解我必须添加什么代码?这是我的剪辑视频活动
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.Window;
import android.view.WindowManager;
import android.widget.MediaController;
import android.widget.Toast;
import android.widget.VideoView;
public class Clipvideo1 extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.clip1);
VideoView videoView = (VideoView) findViewById(R.id.videoView1);
Uri videoPath = Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.fiordi6);
videoView.setVideoURI(videoPath);
videoView.setMediaController(new MediaController(this));
videoView.requestFocus();
videoView.start();
Toast.makeText(this, "Regia di Angelo Giammarresi", Toast.LENGTH_SHORT).show();
}