The video stops when you press the menu key during Android 2.3.7.r1 camera video recording.
Source: Internet
Author: User
When Android 2.3.7.r1 presses the menu key, the video is stopped. Press the menu key when you change the video to do not process it. The following modifications can be made:
In packages/apps/CameraOpen/src/com/mediatek/camera/VideoCamera. java
In the onKeyDown () method:
Modify Copy codeThe Code is as follows: case KeyEvent. KEYCODE_MENU:
If (mHeadUpDisplay! = Null & mGLRootView! = 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
}
Break;
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
}
Break;
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