Service中startForeground(int id, Notification notification)解释(用于进程保活)
官方对该方法的解释/***Ifyourserviceisstarted(runningthrough{@linkContext#startService(Intent)}),then*alsomakethisservicerunintheforeground,supplyingtheongoing*notificationtobeshowntotheuserwhileinthisstate.*By