Remove uses-sdk duplicate
change minSdkVersion to 9 (and not 8 due to camera.open)
widgets must have same size

Add a linearLayout (layout_main)on top of the existing one, with gravity center, and  layout_width/height fillparent .

The other layout (layoutWrap) wrap its content.

The buttons and check box fillParent.

Then all buttons and checkbox have the same size, the size off the biggest widget
layoutWap is wrapped around them and is center verticaly en horizontally in layout_main
Bug correction : camera not released if flash off and home is pressed.

Add boolean flashOn to known if flash on or off.
Update onStart and onStop to properly open the camera  and release it if necessary.

Remove dynamically toggle button flash if no flash, to preserve vertical centering for the two remaining widgets.
Merge remote-tracking branch 'origin/master'