Camera as background in a customized CCLayer ( cocos2d for Android )?
问题 How to use camera in a customized CCLayer ( cocos2d for Android ) , i.e. adding VideoView to CCLayer ? The camera does not require photo taking feature; only showing the view is fine. Yes, I would like to use the camera on mobile phone. I use the following codes to show up the camera: Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); theActivity.startActivity(cameraIntent); but the view overlaps everything and will crash after few seconds. The error is: