url - problem in using camera in android -


following code capturing images in app. after capturing image saves in sdcard , shows done , retake when click done button want captured image uploaded url.

i not able know done , retake button gets appeared pls me...

protected static final int take_receipt = 0; button b1;     intent myintent;      @override     public void oncreate(bundle savedinstancestate)      {         super.oncreate(savedinstancestate);         setcontentview(r.layout.main);          b1 = (button)findviewbyid(r.id.widget98);          b1.setonclicklistener(new onclicklistener()         {             @override             public void onclick(view view)             {                 takepicturefromcamera();             }              private void takepicturefromcamera()              {                  intent intent = new intent(mediastore.action_image_capture);  startactivityforresult(intent, take_receipt);             } 

to save image somewhere specific, need provide uri using mediastore.extra_output:

mintent.putextra(mediastore.extra_output, uri.fromfile(new file(filename))); 

the done , retake buttons shown part of mediastore.action_image_capture intent call. cannot change that.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -