嗨!我在复制PendingIntents时遇到了麻烦。我的应用程序有从应用程序的onCreate开始的服务,执行一些异步任务并自行停止。问题是在每次应用程序启动时,我在AlarmManager中都有一组来自DB的新PendingIntents(完全相同),但它们不会取消以前的,即使使用FLAG_CANCEL_CURRENT。我通过“adbshelldumpsysalarm”确定这一点,这是异步任务的onPostExecute:protectedvoidonPostExecute(游标c){while(c.moveToNext()){int_id=c.getInt(c.getColumn