4
Android 프로젝트를 진행하고 있으며 다음 코드를 향상시킬 수있는 방법을 찾으려고합니다. 나는이 개발 한 방법은 OK인지 아닌지 내가 알 필요가 :IntentService를 여러 번 시작하십시오. android
- 통지는 DB에서 자궁강 된 GCM 알림입니다 내 질문에 내가 몇 가지를 호출하고 의도 서비스에 관한
타임스. 괜찮 니? 어떻게 개선해야합니까?
while (((notification)) != null)
{{
message = notification.getNotificationMessage();
//tokenize message
if (/*message 1*/) {
Intent intent1= new Intent(getApplicationContext(),A.class);
intent1.putExtra("message1",true);
startService(intent1);
} else
{
Intent intent2= new Intent(getApplicationContext(),A.class);
intent2.putExtra("message2",true);
startService(intent2);
}
}
//retrieve next notification and delete the current one
}