View Single Post
Old 06-23-2017, 09:36 AM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by masteranza View Post
Thanks @knc1! I'll get into that once I have some more time...
If what you want to be notified about has a related event, then about all you will need to do is change the event name your waiting for.

Of course, you'll still have to remove any code not suitable for your purpose.
But the author of that thing knew his business, so it should be a good example.

All after you identify an event name from the logs.

You may not have a "Periodical update complete" event to wait for.
But if those periodicals get indexed, then you should see indexer event messages.

And there are 'job queues' in the system with related messages.
I would expect if the system checked and found something that needed to be downloaded, that 'job' would be entered into a queue.

I.E: If there isn't an exact message to wait for, there should be related messages that you could wait for.

= = = =

And while your at it -
Make a version that waits for: "OTA update available" and pops up a message panel, warning the user that their Kindle is about to update its firmware.

- - - -

The principles remain the same, only the names and actions change.
knc1 is offline   Reply With Quote