Try/Catch in Async Tasks
<p>I implemented an Async task which should fetch data from a webservice - however if the device has no active InternetConnection - or if anything happens in the "try" block I get an exception and my app crashes ... I tried to hinder that behaviour with a "finally" clause .. but the debugger is not entering the finally clause</p>

<pre><code>            try{
                this.kantinen = new KantinenListe();
                Gson gson = new Gson();             
                // SOAP Test
                String NAMESPACE = "http://tempuri.org/";
                String METHOD_NAME = "fullSyncGPS";
                String SOAP_ACTION = "http://tempuri.org/IDatenService/fullSyncGPS";
                String URL = "Currywurst.svc?wsdl";

                SoapObject request = new SoapObject(NAMESPACE,METHOD_NAME);

                PropertyInfo pi = new PropertyInfo();
                request.addProperty("radius",10);
                request.addProperty("lat", Double.toString(currentLocation.getLatitude()));
                request.addProperty("lng", Double.toString(currentLocation.getLongitude()));
                request.addProperty("von", "01.09.2011");
                request.addProperty("bis", "05.09.2011");

                SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
                envelope.dotNet = true;
                envelope.setOutputSoapObject(request);        

                HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
                androidHttpTransport.call(SOAP_ACTION, envelope);
                SoapPrimitive result = (SoapPrimitive)envelope.getResponse();

                String resultData = result.toString(); 


                resultData = "{\"meineKantinen\":"+resultData+"}";
                this.kantinen = gson.fromJson(resultData, KantinenListe.class);
            }
            catch(Exception e)
            {
          //todo: implement
            }
            finally
            {
                return this.kantinen;
            }
</code></pre>
