Sample code of Android camera preview