O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

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

The Camera

Now that you know all about using existing pictures from the device, let’s make some new ones. The Camera component activates the camera in the phone and lets the user take a picture using the phone’s camera app. After the picture is taken, it returns to your App Inventor app and provides the name of the new picture for you to use.

The Camera component is simple to use, with only one procedure block and one event handler block. The procedure, TakePicture, launches the camera application. That’s all it does. Any blocks connected beneath it will run immediately. The TakePicture block does not wait for the picture to be completed—that could take whole minutes because humans take time to do things. When the user takes and is satisfied ...

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