Thread: OK ROM comes
View Single Post
Member: scm6079
at: 04:34 AM 06/10/2009
So I've been digging through the camera in detail to add a few functions I want - including letting me set an auto-timer - and there is some *hilarious* code in there.

//NOTE: The Captured event _could_ come in earlier if the SetSnapshotDelayDuration function ever get
//added and called and was used to reduce the capture freezeframe to less then 1second ... OMFG!

So I have the camera modified to add a "5 second timer" button - that let's me click it and then turn the phone around to face me before it takes the picture.

I'm also looking to modify it to be able to use the flash as a flashlight (like my old moto q) - but haven't found enough for that yet.

There are 998 "TODO: " references in the source base. If you want some really funny reading, you should run this command as root on your phone:

find . -name "*.js" | xargs egrep "TODO"

Read the comments - they are great.

_Scott