My app launches the default android camera. However, I am having a problem editing the appearance of startActivityForResult. I just want to change the buttons of strings onStartActivityForResult to buttons that are green and red with no stings or words inside of them.
I have tried to automatically bypass this method and set the result as "OK" by setResult(RESULT_OK, intent); but that doesnt seem to work. I dont mind the camera taking the picture and launching to the next screen without launching startActivityForResult method.
Botton line I want to change the default buttons to something else...any ideas. Thank you in advance!!!
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);
}
}