the example case from book ProAndroid3AppDev