Chapter 10
Currencies Lab: Part 2
In the previous chapter, you fetched the active currency codes by using an AsyncTask in the SplashActivity. You loaded the currency codes into a bundle and attached that bundle to an intent with a destination of MainActivity. Finally, you dispatched the intent to the Android OS.
In this chapter, you’ll continue to develop the Currencies app and focus exclusively on the functionality of MainActivity to complete the app. You’ll use an ArrayAdapter to bind an array of strings to spinners. You’ll use Android Studio to delegate the handling of views’ behavior to the enclosing activity. You’ll also learn how to use the shared preferences as well as assets. You’ll learn about concurrency in Android and specifically ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access