Great! Thanks.
I just have one question. May be the proxy parameters are not correct. How can you catch this connection exception (org.apache.http.conn.HttpHostConnectException) since it's not thrown by JMap class itself. I need to catch this error and take suitable actions or an appropriate warning message about the proxy parameters correctness.
I tried:
MapOptions mapOptions = new MapOptions(MapType.STREETS, 24.43261, -102.92041, 4);
try{
JMap jMap = new JMap(mapOptions);
jMap.setWrapAroundEnabled(true);
}
catch(org.apache.http.conn.HttpHostConnectException){
// Handle error connection due to incorrect proxy parameters
}
But, of course, the compiler claims "Out of Reach try catch clause"