组件
SpencerHale
return Math.pow(Math.pow(x * size, 2) + Math.pow(y * 2*size, 2) - 1, 3) - Math.pow(x * size, 2) * Math.pow(y * 2*size, 3) <= 0;
展开
-
Service的onCreate回调是否在UI线程中
Service生命周期的各个回调和其他的应用组件一样,是跑在主线程中,会影响到你的UI操作或者阻塞主线程中的其他事情(尤其是bind Service时)。原创 2017-03-19 23:39:04 · 883 阅读 · 0 评论 -
广播的优先级和处理方法
1.无序广播:发送方发出后,几乎同时到达多个广播接收者处,并且无法终止广播继续传播,使用Context.sendBroadcast(intent);2.有序广播:广播接收者需要提前设置优先级,优先级高的先接收到广播,而且能终止广播(abortBroadcast());使用Context.sendOrderedBroadcast(intent);有序广播可以设定接收的优先级,并在接收后删掉这个广原创 2017-03-19 23:40:45 · 3535 阅读 · 0 评论