While recently reading some information Google had posted on the MVP design pattern I got curious about how it would look like in real code. The basic idea of this approach is to build one finite piece of testable code and build front ends to it. This allows the business logic to be easily and quickly testable while allowing several types of display.
I'll be the first to admit that my android experience is small but being able to break out an application to testable pieces should be a goal for any project.
My code is found at https://code.google.com/p/mvp-hello-world/
. Click Source -> Browse and look around the trunk for the presenter and the Android and GWT examples. Changing any piece of the presenter will change how both examples behave.
Any comments or critism is welcome.