android - Pre made functional camera available? -
i creating android application need capture images front camera function far not main purpose of application.
i wondering if there pre made custom views manage , make use of android camera object take picture wraps basic camera functions (zoom, focus etc. including interface) within , returns me final image when user has captured photo. such thing exist?
i know seems lazy benefit me focus on unique parts of application instead.
thanks in advance
you can use intent task ::
intent intent = new intent(android.provider.mediastore.action_image_capture); startactivityforresult(intent, camerarequestcode); and inside onactivityresult ::
protected void onactivityresult(int requestcode, int resultcode, intent data) { if ( (resultcode == activity.result_ok) && (requestcode == camerarequestcode)) { bitmap mypicture = (bitmap) data.getextras().get("data"); imageview.setimagebitmap( mypicture ); } }
Comments
Post a Comment