Android saving and storing images in gallery?

view full story

http://stackoverflow.com – How can I save pictures taken by a camera through my app into my device's gallery? I find the tutorials online unclear. The problem is that the app currently crashes after taking a picture and can only save a single image in the directory specified. Am i right in assuming the app is crashing because it doesn't know what to do after saving a file? How might i go about rectifying this problem, anything after the return statement is "unreachable code". I apologise for my lack of knowledge in java. The code: http://pastebin.com/ksp2MewF public class Activity_Camera extends Activity implements (HowTos)