真机运行时错误,小白求解,有没有大神关爱下智障儿童。

qq_35874950 2016-08-24 12:47:39
dministrator.myvideodemo E/Trace: error opening trace file: No such file or directory (2)
08-24 12:29:23.647 9902-9902/com.example.administrator.myvideodemo W/dalvikvm: Refusing to reopen boot DEX '/system/framework/hwframework.jar'
08-24 12:29:23.747 9902-9902/com.example.administrator.myvideodemo W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
08-24 12:29:23.747 9902-9902/com.example.administrator.myvideodemo W/dalvikvm: VFY: unable to resolve interface method 14820: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
08-24 12:29:23.747 9902-9902/com.example.administrator.myvideodemo W/dalvikvm: VFY: unable to resolve interface method 14824: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
08-24 12:29:23.857 9902-9902/com.example.administrator.myvideodemo W/dalvikvm: VFY: unable to resolve virtual method 494: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
08-24 12:29:23.857 9902-9902/com.example.administrator.myvideodemo W/dalvikvm: VFY: unable to resolve virtual method 516: Landroid/content/res/TypedArray;.getType (I)I
08-24 12:29:23.967 9902-9905/com.example.administrator.myvideodemo E/dalvikvm: GC_CONCURRENT freed 191K, 6% free 8495K/9031K, paused 3ms+3ms, total 34ms
08-24 12:29:24.007 9902-9902/com.example.administrator.myvideodemo W/System.err: Invalid int: ""
08-24 12:29:25.147 9902-9902/com.example.administrator.myvideodemo I/Choreographer: Skipped 66 frames! The application may be doing too much work on its main thread.
08-24 12:29:37.857 9902-9902/com.example.administrator.myvideodemo I/System.out: /storage/sdcard0/20160824122928.mp4
08-24 12:29:37.917 9902-9902/com.example.administrator.myvideodemo I/System.out: android.graphics.Bitmap@42f7d0b8
08-24 12:29:37.917 9902-9902/com.example.administrator.myvideodemo W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x426e8438)

麻烦各位大神看看。
...全文
104 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_35874950 2016-08-24
  • 打赏
  • 举报
回复
super.onCreate(savedInstanceState); setContentView(R.layout.activity_video); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); mSurfaceView = (SurfaceView) findViewById(R.id.videoView); tvTime = (TextView) findViewById(R.id.tvTime); tvCurrentTime = (TextView) findViewById(R.id.tvCurrentTime); tvCurrentDate = (TextView) findViewById(R.id.tvCurrentDate); mLayout = (RelativeLayout) findViewById(R.id.myLayout); btnStart = (Button) findViewById(R.id.btnStart); // mSurfaceView.setOnTouchListener(mListener); btnStart.setOnClickListener(onListener); //得到SurfaceHolder mSurfaceHolder = mSurfaceView.getHolder(); //SurfaceHolder的回调方法 mSurfaceHolder.addCallback(this); // 设置Surface不需要维护自己的缓冲区 mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); // 设置分辨率 // mSurfaceHolder.setFixedSize(320, 280); // 设置该组件不会让屏幕自动关闭 mSurfaceView.getHolder().setKeepScreenOn(true); //设置全屏显示: getWindow().setFlags( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); tvCurrentTime.setText(new SimpleDateFormat("hh:mm").format(System.currentTimeMillis())); 这个是我录制视频的Activity的代码

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧