public void onServiceStateChanged(ServiceState serviceState)
{
TextView myservicestate = (TextView)findViewById(R.id.myservicestate);
int state = serviceState.getState();
switch(state){
case ServiceState.STATE_EMERGENCY_ONLY: myservicestate.setText("EMERGENCY ONLY"); break;
case ServiceState.STATE_IN_SERVICE: myservicestate.setText("IN SERVICE"); break;
case ServiceState.STATE_OUT_OF_SERVICE: myservicestate.setText("OUT OF SERVICE"); break;
case ServiceState.STATE_POWER_OFF: myservicestate.setText("POWER OFF"); break;
}
}
MainActivity.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:mobility-logger
作者:
评论列表
文章目录