var imgurl="api.wunderground.com/.../image.gif
wuapikey is pulled from the app setting and is provided by the user and is required by weather underground to get the image.
latlog array is the taken from the device position
imgzoom and imgradunits are look up arrays which provide the zoom level options where zoomindex and unitindex are taken from the GMC settings to determine what zoom level is used in the request.
scrwdth = getWidth()
scrhgth = getHeight()
All of this works fine in the simulator. I can go in and use the set application settings in the eclipse plugin and check the settings for each zoom level I have configured and the simulator is able to retrieve the image and display it. I have pushed this out through the store, and have been able to get the application to run successfully at all zoom levels on my FR230. The weirdness starts when I try to run the app on my Edge 1000. When the zoom level for 5 units is selected on the Edge 1000 zoomindex=0, I get a IQ! On the display. All other settings for the zoom level work without issue. I am still working through some additional troubleshooting steps, but first thing I did was to create a test build to side load so I can set up debugging. Using the following to select the zoom level used in the URL.
var imgzoom = [5, 10, 15, 20, 25, 50, 75, 100];
var imgradunits = ["km", "nm"];
var zoomindex = 0;
var unitindex = 1;
This sets the zoom level to 5 nm in the URL. When loaded on the edge 1000 it will fail and I get the following message.
ERROR: System Error
DETAILS: failed inside handle_image_callback
From this I can only guess that the makeImageRequest is choking on the specific URL. In my app log, I print out the URL that is created. If I hard code the imgurl to the string output into the log, and sideload the build for my device, the image will be displayed on my Edge 1000 and not crash but I loose all selectability of the image. If I change just the zoomindex to 1-7, the app will run fine without crashing.
Since the the URL created appears to work find on at least one device, my FR230, at all zoom levels, I am starting to wonder if the cause of my app failures are symptoms of devices specific bugs. The problem I have is trying to identify the change I can make to the code to make it work as I still can not determine what is happening when building the URL.
Has anyone else seen anything like this or have a suggestion on a check I can do to the the string before passing it to the makeImageRequest command?