recorder.stop() don't work on android 4.2 -


related @ question here problem changed..

it's possibile recorder.stop() doesn't work on android 4.2? work fine on device android 4.1 can't post logcat because tested on customer's device. have created logfile, , stop before recorder.stop()

offcourse

mediarecorder recorder; 

i call start record

    mcamera.unlock();     recorder = new mediarecorder();      recorder.setcamera(mcamera);     recorder.setaudiosource(mediarecorder.audiosource.default);    recorder.setvideosource(mediarecorder.videosource.camera);    //questo metodo di default restituisce valori della camera, altrimenti null      //camcorderprofile cphigh = camcorderprofile.get(camcorderprofile.quality_high);     camcorderprofile cphigh = camcorderprofile.get(1, camcorderprofile.quality_high);      recorder.setprofile(cphigh);      recorder.setoutputfile(mediafile.getabsolutepath());      recorder.setmaxduration(400000);          try {          recorder.prepare();         recorder.start();          registrando = true;     } catch (illegalstateexception e) {         // todo auto-generated catch block         appendlog("riga 1109 " + e.tostring());         e.printstacktrace();     } catch (ioexception e) {         // todo auto-generated catch block         appendlog("riga 1113 " + e.tostring());         e.printstacktrace();     } 

crash here

try{                                      appendlog("rigo 497 stoppo il recorder");                                  recorder.stop();                                  }                                  catch(illegalstateexception e){                                         e.printstacktrace();                                          appendlog("rigo 501 (errore nello stoppare il recorder)" + e.tostring());                                     }                                 catch(exception f){                                     f.printstacktrace();                                      appendlog("rigo 506 (errore nello stoppare il recorder)" + f.tostring());                                 } 

edit

the app crash if change dimension of surface view... work if comment line

  //   params.width = (sizes.get(0).width / 4);     //   params.height = (sizes.get(0).height / 4);      //    msurfaceview.setlayoutparams(params); 


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -