how to upload image captured from camera in an android app

in my app i have placed a button called Add Photo, when the user clicks the button a pop up menu appears with 2 option camera and library. When i select library i am able to move to the photo album of the device. Following is the code which i am using to go to the mobile library

public void library() { Intent myIntent = новое намерение (Intent.ACTION_PICK); myIntent.setType ("изображение / *"); startActivityForResult (myIntent, 1); }

какое бы изображение я ни щелкнул, я хочу, чтобы оно было загружено по URL-адресу,

точно так же, как изображение, которое я снимаю с помощью камеры, также должно быть загружено по URL-адресу.

Как это сделать, есть ли какой-нибудь API или пример кода, пожалуйста, помогите мне

7
задан Siva K 7 April 2011 в 09:53
поделиться