O'Reilly logo

Android Studio Cookbook by Mike van Drongelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Capture and Share

We love to share the world we live in with others, so we will use our smartphones to take images or videos of all the things and all the people we care about. With Android, this is pretty easy.

In this chapter, you will learn about the following:

  • Capturing images the easy way
  • Image capturing using the Camera2 API
  • Image sharing
  • Orientation issues

Introduction

As a developer, you can just launch an intent, grab the data, and do with it whatever you want.

Things become a little bit more complicated if you want to handle image or video capturing yourself. So, why would someone want to do that in the first place? It gives us more flexibility in the way the camera is being previewed, filtered, or handled.

With Android Lollipop onwards, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required