Fixed polling in the android example