How to capture image directly from my apk and post it to a url as file upload

view full story

http://stackoverflow.com – I am developing apk file that contains a view and a button. 1 the view will show async video view from camera. 2 on button click event--> my apk take picture from camera directly and than post it as file upload to dedicated url. (I don't want to get image via camera app). please help me how to do and which libs should be used. (HowTos)