Giter Site home page Giter Site logo

samuelowino / androidcameratester Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zavenarra/androidcameratester

0.0 1.0 0.0 531 KB

Examples of different ways of implementing a photo capture on Android. Some work better than others.

Java 100.00%

androidcameratester's Introduction

Camera Tester

Details different photo capture implementations on Android. Some work on certain devices, some don't.

Please fork, fix issues you see with any of these, and most importantly consider adding examples of other strategies. Leveraging the camera in Android can be harder than it should be.

File URI Lifted verbatim from http://developer.android.com/guide/topics/media/camera.html . This implementation attempts to pass the camera activity a URI for a file in external storage. This seems to return a null URI on some devices.

Content Resolver Uses MediaStore.Images.Media.EXTERNAL_CONTENT_URI to generate a URI for the Camera activity. This seems to be stable across many devices, though it's not an implementation that is easily found online. Thanks to iNaturalist source code for kernal of source here.

Homegrown Camera When all else fails, you can just implement your own camera. Not so feature rich, but it seems to work across many devices

androidcameratester's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.