camera - Flashligth LED cannot be turned on in Galaxy S2 (JB) -


i'm working on app turn on flash light led of handsets. code general:

cam = camera.open(); cam.setpreviewtexture(new surfacetexture(0)); campara = cam.getparameters(); campara.setflashmode(parameters.flash_mode_torch); cam.setparameters(campara); cam.startpreview(); 

this code works in many handsets, flashlight led not turn on in galaxy s2 (4.1.2).

did body meet similar problem or has experience in why galaxy s2 has such problem in api??

thanks.

have @ source simple android flashlight app published: simple android flashlight app


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -