A widget created to record videos from the camera. It allows camera selection, zooming and has a timer that will stop the recording after a x seconds.
Read more…All snippets tagged with camera
Page 1 of 1Record video widget
Profile picture widget
This is a widget for showing a profile avatar, along with an edit button which lunches the camera. If there’s no photo to be loaded a placeholder consisting of an x amount of characters from the user’s name is going to be shown.
Read more…Take a picture using the default camera
Add a file file_paths.xml
to the resources directory res/xml/
in order to grant access to the correct folders:
Camera2 implementation in an extendable Fragment
If you’re going to add a custom camera to your app, use these snippets to do it right. This recipe uses the Camera2 APIs, and hides all the weird code required for setting up a viewfinder and taking pictures.
Read more…Barcode scanner using Google Vision
The implementation of the Google Vision api is not that hard, but there are a few fixes you’ll need to make your app production ready. Most importantly: the default implementation does not support autofocus which makes it very hard to scan a barcode.
Read more…