Untested code 

should show orientation on screen + save csv file and picture to phone when picture is taken.