I\'m trying the camera preview on my Android applications. When I try on my real devices, it gives me black screen.
This is my code and it doesn\'t throw any error,
Maybe you are being affected by this bug of android Camera bug.
The workaround to which is proposed here Work around.
I hope it helps..