MiaoRong / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Bug fix of FacePreview #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just running FacePreview on Android 4.1 Emulator will reproduce the problem.

What is the expected output? What do you see instead?
Expecting to see the program running smoothly.
What I saw is Unfortunately FacePreview has stopped.

What version of the product are you using? On what operating system?
JavaCV 2.0 on Android 4.1.1 Emulator.

Please provide any additional information below.
Solution is right over 
http://stackoverflow.com/questions/4813831/requestwindowfeaturewindow-feature-no
-title-gives-the-exception .

In this case the super is setting the content view, and you must use 
requestWindowFeature before setting the content view. Thus use 
requestWindowFeature before calling the super.

Original issue reported on code.google.com by jp4w...@gmail.com on 4 Aug 2012 at 10:52

GoogleCodeExporter commented 9 years ago
Ah, typical. That sample code came from the Android SDK, so blame the Android 
team :)

Anyway, thanks for reporting. Can you let me know if the following changes work 
well? 
http://code.google.com/p/javacv/source/detail?r=39d251265715f7204573d0b68868c774
9fee84d6
thanks!

Original comment by samuel.a...@gmail.com on 22 Aug 2012 at 12:26

GoogleCodeExporter commented 9 years ago
Updated sample is in JavaCV 0.3, thanks! Let me know if it's still problematic 
though

Original comment by samuel.a...@gmail.com on 5 Nov 2012 at 11:35