Android 2.3.7.r1 stops recording when you press the menu key. Change to video when pressing the menu key does not do processing, you can make the following modifications:
In Packages/apps/cameraopen/src/com/mediatek/camera/videocamera.java
In the OnKeyDown () method:
Modify
Copy Code code as follows:
Case Keyevent.keycode_menu:
if (mheadupdisplay!= null && Mglroo Tview!= null
&&!malertshowing &&!mmediarecorderrecording
&& mheadupdisplay.getwidth ()!= 0) {
Mheadupdisplay.barsswitch ();
}
if (mmediarecorderrecording) {
onstopvideorecording (true);
return true;
} else if (Event.islongpress ()) {
return true;//consume long press to prevent soft keyboard
}
Brea K
is:
Case keyevent.keycode_menu:
if (mheadupdisplay!= null && mglrootview!= NULL
&& !malertshowing &&!mmediarecorderrecording
&& mheadupdisplay.getwidth ()!= 0) {
Mheadupdisplay . Barsswitch ();
}
if (Event.islongpress ()) {
return true;//consume long press to prevent soft keyboard
}
Bre Ak