The question that I want to answer with this post is the following: How bundle Android works for exchanging data from a running thread to the main UI?
This is a fairly common situation in Android projects and very simple to figure it out. The context might be the following:
- An Android activity that creates a thread running some work
- The created thread has to exchange some data with the main UI thread
This situation can be handled by using a combination of Android bundles and messages. Continue reading