Maneesh Godbole wrote:The getValue() will be called whenever the table wants to repaint itself. From a developer's perspective that will be any time after the table is displayed on the UI
Maneesh Godbole wrote:Uh oh! I see a Null Pointer exception if your rowList is empty
Steve Luke wrote:Are you saying that the method reaches line 21 (the curr.alerted() method) but does not reach line 22 (the Log statement)? If so then
1) I would check the logs to see if there is an error
2) If no error, then the curr.alerted() method must hang, blocking the Timer's thread from executing further. Figure out what makes it hang, and make it stop.
The DDMS tools which ship with the Android SDK should help you figure out the state of the timer's thread.
Sahil Rally wrote:Hii Sean
Use Context object available in onReceive() method.
NOTE: Both Activity and Service extends Context , so if you are launching Notification from Service/Activity , you can simply use this.
Paul Clapham wrote:What I would recommend is this:
1. Use DOM to parse the file and build a Document object.
2. Use XPath to find the element into which you want to insert your newly-built element.
3. Insert the newly-built element into the element you just found.
4. Write the Document out to a new file using a Transformer.
Jayesh A Lalwani wrote:How are you reading and writing the file right now? Which API do you use?
Peter Johnson wrote:Yes, this should really be asked in the Android forum, I'll move the post for you. I suspect that you are running into one of the methods that is not provided on the Android platform (which is not 100% Java compliant), hence the error.