Android 2.3.7.R1 Camera When you press the menu key during video recording _android

Source: Internet
Author: User
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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.