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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.