Mystery of this code is explained
Simple Calculator Android Application Code