竖屏录制视频后,播放视频旋转90度,如何让其不旋转 在播放的activity 加这一句 android:screenOrientation="landscape"就可以了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 @Override public void onConfigurationChanged(Configuration newConfig) { // TODO Auto-generated method stub super.onConfigurationChanged(newConfig); if(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE){ this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); surfaceView.setLayoutParams(lp11); } else { final WindowManager.LayoutParams attrs = getWindow().getAttributes(); attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().setAttributes(attrs); }} 有谁搞定了android的JNI?javah总是提示找不到类。 Android4.0 Switch开关修改显示图片 APK之间的进程通信 如何的滑动屏幕来切换Activity 为什么读不出数据 android怎么以字母或拼音查询手机的通讯录 如何替换Android模拟器 system/lib/和system/bin/下面的文件 webview怎么显示.jsp? 请教一个浮动Activity的问题 华为特殊访问权限 求大神指教 viewPage适配listview 界面滑动很卡 android布局的问题
public void onConfigurationChanged(Configuration newConfig) {
// TODO Auto-generated method stub
super.onConfigurationChanged(newConfig);
if(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE){
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN); surfaceView.setLayoutParams(lp11);
} else { final WindowManager.LayoutParams attrs = getWindow().getAttributes();
attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().setAttributes(attrs); }
}