##1 Introduction to the Android Camera Development Guide

This is a 5-part article series and associated project which explore the basics of Android Studio camera development using Fragments and List Fragments. You can find the source project here.

The project contains 5 examples:

Each example will have a different article covering it's construction and showing how it works.

###1.1 Getting the Example Project

Before proceeding, "git clone" the above Android project I have made available in GitHub. If you aren't yet using Android Studio, download it now. If you haven't discovered it yet, I recommend making use of the Genymotion emulator in order to speed your development process.

###1.2 Setting Permissions

Before using Android's camera make sure you properly get permission from the device by setting details in the Android manifest. If you plan on saving photos to storage you will need WRITE_EXTERNAL_STORAGE.

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />> <uses-feature android:name="android.hardware.camera" android:required="true" />

##2 Project Overview

The example project is based on an auto-generated Android Studio template using a Navigation Drawer which flips between multiple fragments. To browse the fragments, click the upper left hand icon and view the different sections.

###Chapter 1: Taking A Picture With Intents

In this article, I will be discussing how to implement a simple image capture intent from within a Fragment which opens Android's external camera, allows the user to take a picture, saves the picture into storage and then displays the image in an ImageView. I will also show how to save and display thumbnail and large-scale versions of the resulting image.

Read the article by clicking here.

###Chapter 2: Creating A Simple Photo Gallery In A List Fragment

In this article, I will discuss how to create a simple photo gallery using a List Fragment in Android Studio. We will use an AsyncLoader to load all of your gallery images in a background thread and then display these images in a grid using a list adapter. I will also show how to display "thumbnail" sized versions of gallery images for speed.

Read the article by clicking here.

###Chapter 3: Using Android's Image Picker

In this chapter, we will be showing an example of how to open Android's image picker, select an image and then display it in an image view held by a fragment.

Read the article by clicking here.

###Chapter 4: Using Android's Native Camera

In this chapter, we will be showing how to use Android's native camera inside the application itself using a SurfaceView. We will set up a surface view and capture an image and save it into the photo gallery.

Read the article by clicking here.

###Chapter 5: Creating A Horizontal Scrolling Image Gallery

In this chapter, we will create a horizontal scrolling image gallery using Lucas Rocha's TwoWayView control and a List Fragment.

Read the article by clicking here.

##3 Helpful Links