Git Product home page Git Product logo

nicecameraexample's Introduction

Nice Camera Example for Android

During the development of an Android application that used Camera functionalities, my mind blowed up when trying to understand how things like CameraPreview, startPreview(), addCallbackBuffer() work.

Every single step forward generated a different error... sometimes was my fault... but a big contribution came from the official documentation.

What's wrong with it?

At least in the November 2013's version, the authors offered a very nice explanation of SOME aspects of a Camera app development, but some other information were missing. In fact, if you try to follow the tutorial step by step, you'll probably end with an app that works good on a 5% of the total amount of Android devices in the world. Not so good, really.

So what?

So I decided to make a "custom" guide to this subject, without HTML pages but directly with a working Eclipse project. I can't guarantee that it's 100% good (I can't test it eveywhere), but surely it's a good starting point and obviously everyone can make it better by fixing some mistakes that came from my keyboard.

The project is intended to demonstrate how a basic Camera app should be, and also:

  • to describe some key-methods to enable a Camera preview on different screen formats
  • to describe how to make it so that it's supported from API 8
  • to set the starting point for real-time preview buffers interaction.

How can I help you?

If you try this code and discover that it totally crashes on your Android device, just fork it and try to fix what's going wrong. Please remember some little guidelines:

  1. Always write a good documentation before commit
  2. Don't add new functionalities that could just make the project more complicated, leave it simple!
  3. Tell me if I made some coding errors and where are they.

Enjoy!

nicecameraexample's People

Contributors

alessandrofrancesconi avatar

Watchers

James Cloos avatar Mohan S 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.