Chapter 5. Exploring the Android API

This chapter will examine the Android application programming interface (API) in depth and show how to use Python to call the different functions.

Note

Python cannot access every Android API with the r3 release of SL4A. Other languages such as BeanShell do have this capability and will be used to look at some of the missing functions.

This chapter will rely heavily on a basic understanding of the concepts introduced in Chapter 1. The topics include Android activities and intents, JSON, Python types, and RPC. I'll walk you through each API facade and include examples of how to use them where appropriate. They're all fairly self-explanatory with descriptive names such as cameraCapturePicture and recognizeSpeech ...

Get Pro Android Python with SL4A now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.