0

Can I capture image in android and convert it to bitmap without overriding onActivityResult

Intent takePicture = new Intent();
takePicture.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
  • 1
    Not really. `ACTION_IMAGE_CAPTURE` delivers its results via `onActivityResult()`, so that you know whether or not the user actually took the picture. What is the specific problem with overriding `onActivityResult()`? – CommonsWare Mar 19 '17 at 13:46
  • I create BaseActivity and the other activities extends it.... I can only override the ،onActivityResult(), in the BaseActivity, and I cannot override it in the child activities – user7470376 Mar 19 '17 at 13:55
  • "I cannot override it in the child activities" -- why not? – CommonsWare Mar 19 '17 at 13:57
  • it looks like that http://imgur.com/a/DG5p3 – user7470376 Mar 19 '17 at 14:02
  • That is not how you override a method in Java. – CommonsWare Mar 19 '17 at 14:04
  • How to override method in java...?! – user7470376 Mar 19 '17 at 14:22
  • See https://docs.oracle.com/javase/tutorial/java/IandI/override.html and https://www.tutorialspoint.com/java/java_overriding.htm. There are also many books and courses on Java that cover basic Java syntax such as this. – CommonsWare Mar 19 '17 at 14:24

0 Answers0