Pipi

Results 3 comments of Pipi

这个是不是你开了instant run的?

我也遇到了,去掉参数中的setFocusMode就行,官方例子没加这个。

查了资料运行调试发现前置的模式设置成了auto。楼主的代码 ![image](https://user-images.githubusercontent.com/12505302/32208975-d67e1a08-be40-11e7-8aec-add10c728512.png) 这里加个if判断就行了。