我正在从Google Play控制台获取ANR报告。
意图广播{act = android.intent.action.SCREEN_ON flg = 0x50200010}
下面是我得到错误行号的代码
try {
new Timer().scheduleAtFixedRate(new TimerTask() {
@Override
public void run() {
try {
if (bannerList.size() > 0) {
if (activity != null) {
activity.runOnUiThread(new Runnable() {
public void run() {
try {
int position = bsPromotion.getCurrentSlidePosition() - 1;
if (position < 0 || position > 4) {
position = 0;
}
tvBannerText.setTag(position);
tvBannerText.setText(bannerList.get(position).title);
} catch (Exception e) {
}
}
});
}
}
} catch (Exception e) {
}
}
}, 0, 500);//put here time 1000 milliseconds=1 second
} catch (Exception e) {
}