Hi,
I know I can capture network errors with setErrorListener. But then, how can I stop MapComponent from displaying "Network error!" and reinitialize itself? stopMapping; startMapping() sequence doesn't work - startMapping throws IllegalThreadStateException so I suppose startMapping doesn't recreate Thread objects and tries to restart dead threads. Do i have to recreate MapComponent and set properties from the beginning on every error? This behaviour makes it pretty unusable (for instance gprs can fail pretty often)
hi jaak,
I created Mapcomponent in one screen i need to navigate to other screen and come back to map Screen that time illegalthreadsafeexception showing..
How to retrieve this problem
any help please
You should use MapComponent as singelton. The simplest (but not most elegant) way would be to create mapComponent on Screen1 as public field. If map is needed to be accessed on another screen then you access it a as Screen1.mapComponent, instead of creating new MapComponent there.
Right now you should recreate MapComponent, error situation closes threads (does automatic stopMapping) like you describe. This "Network error!" situation can come during initialization only, if GPRS fails later, then map shows "missing tile" images during blackout and does not do "stopMapping". If network is back, then also tile loading resumes automatically.
/JaakL