安卓编程,service每隔一秒产生一个0到1之间的随机数,在Activity中显示。这个应该怎么做?
http://max.book118.com/html/2015/1212/31271556.shtm看里面的simple random service demo