Capture image at run time

Hi,
We want to capture image at run time from android device.

  1. Do we have any method for same
  2. Option/steps to capture image in different devices are different, so how can same be handled