android - I want to edit the look of startActivityForResult -


my app launches default android camera. however, having problem editing appearance of startactivityforresult. want change buttons of strings onstartactivityforresult buttons green , red no stings or words inside of them.

i have tried automatically bypass method , set result "ok" setresult(result_ok, intent); doesnt seem work. dont mind camera taking picture , launching next screen without launching startactivityforresult method.

botton line want change default buttons else...any ideas. thank in advance!!!

edit buttons

 public void takephoto(view v) {      intent intent = new intent("android.media.action.image_capture");      photo= new file(environment.getexternalstoragedirectory() + boo + "/patient.jpg");      imageuri = uri.fromfile(photo);     intent.putextra(mediastore.extra_output, imageuri);     startactivityforresult(intent, take_picture);  }  @override protected void onactivityresult(int requestcode, int resultcode, intent intent) {     super.onactivityresult(requestcode, resultcode, intent);     if (resultcode == activity.result_ok) {         toast p = toast.maketext(this, "code: " + resultcode, toast.length_long);         p.show();         intent intent2 = new intent(newpatient.this,patientname.class);         startactivity(intent2);     } } 

image_capture intent launches app. camera app shipped device, user may choose install more camera apps, , decide use of them fulfill intent.

you have absolutely no control on , feel of other app. may decide not open camera device.

if care, should implement own custom camera activity.


Comments