taking photos and viewing gallery finally work for view and edit chapter activities. Atleast on the emulator it works