Android – Camera preview is sideways

This issue appeared to start out as a bug with certain hardware see here but can be overcome by using the call to mCamera.setDisplayOrientation(degrees) available in API 8. So this is how I implement it: public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { if (isPreviewRunning) { mCamera.stopPreview(); } Parameters parameters = mCamera.getParameters(); … Read more

Need preview page before send email [closed]

Further to my comment, what I mean by splitting up the sendMail.php (you will, of course, have to modify your main page javascript to accommodate a confirm response from your sendMail.php): if(isset($_POST[‘data’]) && is_array($_POST[‘data’]) ) { foreach($_POST[‘data’] as $data) { } $datatList = implode(‘, ‘, $_POST[‘data’]); } else $datatList = $_POST[‘data’]; if(!isset($_POST[‘confirm’])) { $name = … Read more