Android Friday: Let Activities encapsulate their creation

stone-doors-within-doors.png

Opening screens from other screens in Android apps is straight forward: create an Intent object, stuff some parameters into it, use it to launch the other Activity, and dig out the passed parameters at the other end.

Unfortunately, if you blindly follow Googles standard examples of how to do this, you will end up sprinkling potential bugs around your codebase. Let’s look at how to tighten it up a bit.

Continue reading “Android Friday: Let Activities encapsulate their creation”