I am new in Android and I want to get direction according to my camera. How can I get direction information according to my camera? Could you give an idea for this?
Not sure what you mean by according to your camera, but you can get it based on the hardware sensors. See the following links:
Compass Example
Also check out the Sensor TYPE_ORIENTATION on this page.
TYPE_ORIENTATION