I have a widget that contains 4 buttons to show 4 stock prices, each of them will launch into the same activity Quote.class to show stock details. In onUpdate(), it will set
onDestroy
to possibly not get called if you do simple task switching (like holding the HOME button). If you need to do clean-up, it needs to go in onPause
.PendingIntent
that only differs by extra. PendingIntents are cached, so if you use two with the same action and data, they'll overwrite each other. You can circumvent that by giving each some random data. Try passing the symbol in the data rather than through the extra (which is preferred anyway).