解决在极光推送的时候会出现一个 JPush提示:缺少统计代码

<span style="font-size:14px;">

@Override
protected void onResume(){
    super.onResume();
    JPushInterface.onResume(this);
}
@Override
protected void onPause(){
    super.onPause();
    JPushInterface.onPause(this);
}


</span>


加到应用的第一个加载的activity生命周期中就好了

原文地址:https://www.cnblogs.com/molashaonian/p/7445860.html