I'm working on a widget that is basically this:
When initialized, start a timer for "x" minutes
When the timer fires, call a function to issue a makeJsonRequest() to get some data off a website
When "onReceive: is called, grab the data needed, format/storing it in class variables, and then call requestUpdate(); to get it output. (using findDrawableById()...))
So in other words, simple. Every "x" minutes, get some data from a website and display it. In reality, "x" is 5 minutes or more, as the website only has new data every 5 minuues..
Came back from lunch, and the simulator had crashed (per a dialog box from Windows), and nothing odd was in the Console on Eclipse. I put in some println()'s to see entry and exit to functions, and changed the timer down to 1 minute from 5. I could consistently get the crash in about 10 minutes (the 5 minute timer took much longer - like about 60 minutes)
While trying to narrow things down, I basically commented out everything except the makeJsonRequest() call, and the crash of the simulator still happened - and CONSISTENTLY the 10th time that makeJsonRequest() is called in a widget like this...
I'm a newbie to Monkey C, so it's very possible I did something wrong and caused the simulator crash.
Here's the actual call I use (edited the URL)
Comm.makeJsonRequest("http://(myurl)",{}, {}, method(:onReceive));