We are about to switch to a new forum software. Until then we have removed the registration on this forum.
i'm wondering is there any method can call native camera with native menu on it my phone is sony z2,something like the picture showing.i did try with ketai camera,but it just showing the camera images without any native menu on it is that possible? cheers
Answers
@liquid===
sure, that's probably possible; with native android you have only to use an intent with MediaStore.INTENT_ACTION_VIDEO_CAMERA: it opens the camera app on your phone. With processing 2XX you can do that in the same way; as for 3XX i have never tried, i ll test as soon as possible...In all cases don t forget the permissions.
ok,thxs for the hint,will try this later on
@liquid===
tested; it works with P3XX also with some little changes.
great,something like this?
how convert it to PImage to draw on screen? cheers
@liquid===
something like this to launch the native camera, then you take your picture, then you get it from the default android pictures folder and put it on screen with standard P5 code (image(myImage, here, there);
@akenaton,great,that works. but the pde will sayin that getActivity() function does not exist https://github.com/processing/processing-android/issues/171 thxs for the help!
@liquid:: dont listen to pde... You are in a fragment since P3xx and this.getActivity() is absolutely mandatory....and it works!!!