title: Android multiple actions for one Button
body: <p>Good Day guys! I am really serioulsy stuck on programming my android application.This is the problem guys.
  I have application which uses camera broadcasting with surface View.I got only one button which by idea should make access to a camera then after accessing it take a picture.
  I tried if and else statements but didn't help me.I searched whole internet nobody can give any good solution.
  So by idea that only one button in one activity should do these two functions:Open camera,after opening capture.
  Please help me and thanks in advance.</p>