I have been testing my app and I see that in one case one of my screens does not draw the views under some conditions.
All looks fine under normal conditions but in testing I ran across a case where I just get a blank page.
The activity starts, sets some text on a couple of labels then attempts an IP connection back to the PC.
Once connected if begins to send a data stream to the pc. That part is working well.
In the receiver code on the pc I added a beak point to see what would happen should something odd happen on the pc side or connection issues.
So the device connects, sends the first record and is waiting for a response from the PC. At this time I am seeing a blank screen on the device. None of the views have been drawn nor any text displayed.
So I am wondering is there a method I can use to get it to update the display before going into the connect code and/or get it to update during the loop that sends the data stream?
Also is there a way to set a timeout on the IPReader.Readline method it seems the program is currently just going to sit there showing a blank page forever waiting for a response.
If I resume the pc code then the transfer completes and the screen displays. If I close the PC program I get an error reported on the device due to loss of connection as expected.
I need to be able to handle a case where the pc does not respond in a reasonable time or the pc responds with an unexpected result that could cause the device to appear to hang as when a break point was hit on the pc.
All looks fine under normal conditions but in testing I ran across a case where I just get a blank page.
The activity starts, sets some text on a couple of labels then attempts an IP connection back to the PC.
Once connected if begins to send a data stream to the pc. That part is working well.
In the receiver code on the pc I added a beak point to see what would happen should something odd happen on the pc side or connection issues.
So the device connects, sends the first record and is waiting for a response from the PC. At this time I am seeing a blank screen on the device. None of the views have been drawn nor any text displayed.
So I am wondering is there a method I can use to get it to update the display before going into the connect code and/or get it to update during the loop that sends the data stream?
Also is there a way to set a timeout on the IPReader.Readline method it seems the program is currently just going to sit there showing a blank page forever waiting for a response.
If I resume the pc code then the transfer completes and the screen displays. If I close the PC program I get an error reported on the device due to loss of connection as expected.
I need to be able to handle a case where the pc does not respond in a reasonable time or the pc responds with an unexpected result that could cause the device to appear to hang as when a break point was hit on the pc.