concept change in category android

appears as: change, chges, chge, chge, The chges, The chge, chges
RxJava for Android Developers

This is an excerpt from Manning's book RxJava for Android Developers.

When you want to react to a change in state of one of your observables—a signal of sorts—you’ll define a function that’s called with that value as an argument. This function is called a subscriber or observer. In the context of a simple observable, it’s very much like a callback function that’s called every time you have a new value.

But how do you get anything done with immutable data? In the end, do you want to have changes made?

This is where you need to cause side effects. A side effect is something that causes changes in parts of the program that aren’t in the scope of the function. The most common side effect is drawing in the UI. It could also be logging, networking, or even closing the whole application.

Applying a change to the GameGrid

Android in Practice

This is an excerpt from Manning's book Android in Practice.

When Android development began, the Android operating system kernel started out as a true branch of the 2.6.x Linux kernel tree. The Linux community had high hopes for the future of Linux, with a player like Google actively working and improving on the source code and contributing changes back upstream. But due to heavy modifications to the driver architecture (partially caused by Android’s custom security system), code contributions from the Android kernel branch were impossible to merge into the Linux kernel mainline. This upset the Linux community, because it locked out vendors who developed Android device drivers by keeping them from contributing code back to the Linux kernel. As a result of this, any code contributions made by Google to the Linux kernel project have been completely removed from kernel.org as of February 2010, and both projects are now being developed independently of each other.

Note that a change in orientation isn’t the only configuration change that can happen. For instance, there’s a dock configuration that’s triggered when someone puts their Android phone in a docking station (for example, when in a car). Any configuration change will terminate the currently visible Activity and restart it using the new system configuration, so always be prepared for interruptions.

Figure 13.7. Since we’ve written a test for it, we can now detect changes to the application version name that aren’t allowed by our rules. In that case, JUnit will report an assertion failure in the JUnit result view.