在 onWindowFocusChanged 做跳转
first 表示第一次进页面
@Override
public void onWindowFocusChanged(boolean hasFocus) {
// TODO Auto-generated method stub
Log.e("mmm","页面完全加载完成");
super.onWindowFocusChanged(hasFocus);
////
String param = "";
Uri uri = getIntent().getData();
String scheme = "";
String host = "";
if (uri != null) {
host = uri.getHost();
scheme = uri.getScheme();
param = uri.getQueryParameter("param");
String index = param;
if (index.equals("1")) {
if (first) {
//execute the task
Log.e("执行跳转");
setGrabOrderSelect(); //跳转抢单 刷新
first=false;
}
} else if (index.equals("2")) {
if (first) {
//execute the task
Log.e("执行跳转");
setOrderSelect(0); //跳转
first=false;
}
}
}
}