android: almost working runtime sample