8

PendingIntent.send throws exception when old activity no long exists

view full story
linux-howto

http://stackoverflow.com – I have an Activity Class that is calling an IntentService class to do some work Intent intent = new Intent(this, NetworkHandler.class); PendingIntent pendingIntent = createPendingResult(1, intent, PendingIntent.FLAG_ONE_SHOT); intent.putExtra(NetworkHandler.REFRESH_CONTENT, NetworkHandler.GRO); intent.putExtra("pendingIntent", pendingIntent); startService(intent); After the IntentService is done I trigger the call back to the Activity by pendingIntent.send(); However, if the user pressed the Back button when IntentService is still running in the background, when pending intent tries t (HowTos)