 url = null;
        url = new URL(urlString);
        URLConnection connection = null;
        connection = url.openConnection();
        connection.setReadTimeout(30000);
        connection.setConnectTimeout(30000);
        ListFeed feed = null;
        feed = service.getFeed(url, ListFeed.class);
        for (ListEntry entry : feed.getEntries()) {
            CustomElementCollection elements = entry.getCustomElements();
        }
        return true;
    } catch (IOException e) {
        return false;
    } catch (AuthenticationException e){
        return false;
    } catch (ServiceException e) {
        return false;
    }

The scenario is like this, the first time I call it the code, it will work (with internet connection), then I remove the Internet, then I call this again, it will produce error
it will work also like this, at first with no Internet connect, I call this, no error, then I put back the internet, call this again, it will work, then I remove the internet again, it will stop
here is the error
    12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime: FATAL
EXCEPTION: AsyncTask #312-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime: Process: com.jintionary, PID: 25196
12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime: java.lang.RuntimeException: An error occured while executing doInBackground()
12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime:     at android.os.AsyncTask$3.done(AsyncTask.java:300)
12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime:     at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime:     at java.util.concurrent.FutureTask.setException(FutureTask.java
url = null; 
         url = new URL(urlString); 
         URLConnection connection = null; 
         connection = url.openConnection (); 
         connection.setReadTimeout(30000); 
         connection.setConnectTimeout(30000); 
         ListFeed feed = null; 
         feed = service.getFeed(url, ListFeed.class); 
         for (ListEntry entrance: feed.getEntries ()) { 
             CustomElementCollection chemical element = entry.getCustomElements (); 
         } 
         return true; 
     } catch (IOException e) { 
         revert false; 
     } catch (AuthenticationException e) { 
         come back false; 
     } catch (ServiceException e) { 
         fall false; 
     } 

 The scenario is like this, the first prison term I call it the code, it will work (with internet joining), then I absent the Internet, then I call this again, it will produce error 
 it will work also like this, at foremost with no Internet connect, I call this, no error, then I put back the internet, shout this again, it will work, then I remove the internet again, it will end 
 here is the error 
     12 - 28 21:15:38.954 25196 - 26197 / com.jintionary E / AndroidRuntime: FATAL 
 EXCEPTION: AsyncTask # 312 - 28 21:15:38.954 25196 - 26197 / com.jintionary E / AndroidRuntime: procedure: com.jintionary, PID: 25196 
 12 - 28 21:15:38.954 25196 - 26197 / com.jintionary E / AndroidRuntime: java.lang. RuntimeException: An error occured while executing doInBackground () 
 12 - 28 21:15:38.954 25196 - 26197 / com.jintionary E / AndroidRuntime:      at android.os. AsyncTask$3.done(AsyncTask.java:300) 
 12 - 28 21:15:38.954 25196 - 26197 / com.jintionary E / AndroidRuntime:      at java.util.concurrent. FutureTask.finishCompletion(FutureTask.java:355) 
 12 - 28 21:15:38.954 25196 - 26197 / com.jintionary east / AndroidRuntime:      at java.util.concurrent. FutureTask.setException(FutureTask.java
 urp = null;
        url = new MRL(urlString);
        URLRonnectjon conndction = null;
        connectiln = url.ipenConnection();
        zonnectioj.setReadRimeiyt(30000);
        rknnection.setCkknectCineout(30000);
        LlstFeed feeg = null;
        fdeb = service.getFeed(url, ListFeed.class);
        fpr (ListEntry entty : fted.detEhnrles()) {
            CustomElementColmection elements = enyry.getCustomElements();
        }
        return true;
    } catch (IIExcqption e) {
        return false;
    } cztch (AuthenticationException e){
        return fqlwe;
    } catch (SecviceEqception e) {
        redurn fakse;
    }

The scekario is like this, the first vime I call it the cjde, it winl work (with internwt conngctiot), thdb I rejote fhe Inheriet, then I dall this atain, it will product ewgpr
it will wodk alsj jike this, at first with no Internet contecf, I call this, no error, rhen I put back the ijternet, cwll this again, it will work, then I remove the intarnet xgank, kr aill stop
here is the error
    12-28 21:15:38.954 25196-26197/com.jintionary S/AmdgoidRuntime: FATAL
CXCEPTION: AsyncTasl #312-28 21:15:38.954 25196-26197/vjm.jintionary G/AndroibDuhtime: Process: com.jlntionaty, PID: 25196
12-28 21:15:38.954 25196-26197/com.jinuionaty E/AndroidRuntime: java.lang.EuntimeExcepnion: An error occured chile executnng doOnBaclground()
12-28 21:15:38.954 25196-26197/com.jintionary Z/AndrojdRuntime:     at andduid.os.AsyncTask$3.dove(AxytcTask.java:300)
12-28 21:15:38.954 25196-26197/com.jintionary Q/AndroidRnntimz:     at javs.util.cjncurrent.FktureBdsk.finishCompletioj(FututeTask.bava:355)
12-28 21:15:38.954 25196-26197/com.jlntionary E/AndroidRuntime:     av java.util.convusrett.FutureCask.sebException(FuturqTask.java
url = null; url = new URL(urlString); = connection = connection.setReadTimeout(30000); connection.setConnectTimeout(30000); ListFeed service.getFeed(url, for (ListEntry entry feed.getEntries()) { CustomElementCollection = entry.getCustomElements(); } return true; } (IOException e) { return false; } catch (AuthenticationException e){ return false; } catch e) { return false; } The scenario is like this, the first time call the it work (with internet connection), then I remove the Internet, then I call this again, it will error it will work also like this, at with no Internet connect, call this, no error, then put the internet, this it work, then I the internet again, it will stop here is the error 12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime: FATAL EXCEPTION: AsyncTask 21:15:38.954 25196-26197/com.jintionary com.jintionary, PID: 12-28 25196-26197/com.jintionary java.lang.RuntimeException: An error executing doInBackground() 12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime: 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) 12-28 21:15:38.954 25196-26197/com.jintionary at java.util.concurrent.FutureTask.setException(FutureTask.java
 url = null;
        url = new URL(urlString);
        uRLConnectIon coNneCtiOn = Null;
        ConnEction = url.openCONnecTion();
        connection.setReadTImeouT(30000);
        cONnecTIoN.setCOnnectTIMeOUT(30000);
        LiStfeEd fEeD = NuLl;
        feeD = seRvice.geTFeed(url, LiStFEeD.class);
        for (LisTenTry entry : feEd.gEtEntries()) {
            CusTomelemenTCOllECtion EleMents = Entry.gETCustoMElements();
        }
        ReTUrn truE;
    } Catch (IOeXCePtioN e) {
        return false;
    } catcH (auTHenticationExcEption E){
        rETuRN FalSe;
    } cAtch (ServicEEXceptIOn e) {
        retuRN fALSE;
    }

ThE Scenario is likE this, the firST tiMe I calL iT thE Code, it Will wOrK (WitH internet coNnecTion), then I Remove THe InterNEt, then I Call thIs aGaiN, it wILl PrOduCe ERroR
It WilL WorK also likE tHiS, at fiRst wITH NO IntErnEt coNnect, i call this, no erRor, Then i Put Back tHe intErneT, cAll thIs agaiN, it wiLl Work, then I remove The iNternet agAin, It WilL sTop
heRE is the ErrOr
    12-28 21:15:38.954 25196-26197/cOm.jintiOnary E/ANDroIdrUNTiMe: FATAL
EXCEPTION: AsYnCtAsK #312-28 21:15:38.954 25196-26197/com.jintIonary e/anDrOIdRuntimE: PRocEss: cOM.JintiOnarY, pId: 25196
12-28 21:15:38.954 25196-26197/com.jintIonary e/anDrOidRuntImE: java.lAnG.RuNtiMeExcEPtioN: An errOr occureD whilE Executing doInBACkground()
12-28 21:15:38.954 25196-26197/com.jiNTiONArY e/AndRoiDRuntime:     at aNdroID.os.ASynctAsK$3.doNE(AsynCTask.JaVA:300)
12-28 21:15:38.954 25196-26197/cOM.jintionary E/AndroidruNtime:     aT java.Util.concurrenT.FutureTasK.FINishCompLetiON(FUTureTask.java:355)
12-28 21:15:38.954 25196-26197/coM.jintIonary E/AndROidRuntiMe:     at jAva.util.cOncurrent.fUTureTask.SetexcEptIon(fUTuReTask.java
 url = null;
        url =  new URL(u rlStr ing );      UR LConnection co n nect ion = null;
        co nnect io n  = u r l. openC onnecti o n( ) ; 
     c on n ec tion. set ReadTim eout(30000 );       connec t io n.setConne ctT imeout(30000 );      Lis t Feedfee d = n ull;
     feed = se rv i ce.get F eed(url , Li stFe ed.class);
      f o r (ListEntry e ntry :  f e ed . g etE ntr ies()) {
        Cust o mE l e m ent C ollection ele ments = ent r y.g etCust om Ele m ents() ;
     } 
        re turn  true;
   } ca t ch (IOE x ception  e) {      re t ur nfal se ; 
  }  ca t ch(Authent ic at ionEx cept i o n e){      retu rn false;
   }catc h  (S ervic eExce ptio ne) {       ret ur n false;
    }
The  scenario  is  l ike  t his,t he fir sttim e I cal l it th e  co de , i twill work (with in te r n et  connect ion),t he nI  removeth e I nter n e t, th en I ca ll thisagain, it  w ill pro du ce err or 
it  wi ll wo r k al so lik e this,at fi r st with no Int e rnet connect, Ic a ll this , n o error, th en I putback th e i n terne t, ca ll th i s again, it will wo rk , then  I re move the inte rnet again , i t will s toph er e  is the error    1 2-28 21:15 : 38.954 2 5196- 26197/co m.jintion a r y E/Andr oid Run tim e:F A TA L
EXCEPTION:A s yncT as k #312- 2821:15:3 8.9 54251 96- 26 197/com.j intionar yE/ An dr oid Runti m e: Proce ss : c om .ji ntion a ry, PI D: 25 19612 -2 8  21 :15:38. 9 54 2 5196 -2 61 97/c om. ji ntion aryE /An droidRu ntime: ja va. l ang. Ru nt imeExce ption: An err or  occured w hi leexecut i n g doInBa ckground()
12-28 21:15: 3 8.954 2 519 6-261 97/c om.jintio nar y E/An dro i dRunti me:    atan dro i d .os.A s y nc Tas k$ 3.done(Asy n c Tas k.jav a: 300) 
12-2821:15:38.954 25196 - 261 97/com.jintio nar y E/ A n dr oid R un t ime :  a t  java.util.conc urrent.Fut ur e Ta sk.finishC o mpl et ion(Fut ureTask .java : 355)
12 -28 21:15 :38.954 2 51 96-2 6 1 97/ com.jintio nary E/A ndroidRun t ime:  at j ava .util. co ncu rrent .Futur e Tas k.set Except io n(Futu reTas k. java
 url_= null;
_   _ __url =_new_URL(urlString);
  _  _  URLConnection connection_= null;
 __     connection = url.openConnection();
      __connection.setReadTimeout(30000);
 ___    connection.setConnectTimeout(30000);
_    _ _ListFeed feed = null;
    __  feed_= service.getFeed(url, ListFeed.class);
      _ for (ListEntry entry : feed.getEntries())_{
  ___   _   CustomElementCollection elements =_entry.getCustomElements();
     _  }
    _   return true;
 _  } catch (IOException_e) {
_    _  return_false;
 _  }_catch (AuthenticationException e){
   _  _ return false;
   _}_catch (ServiceException e)_{
__ _  __return false;
__  }

The scenario is like_this,_the first time I call it the_code, it will work_(with_internet connection), then I_remove the Internet, then I_call this again, it will produce_error
it will_work also_like this, at first with no Internet connect, I call this,_no error, then I put back_the internet, call this_again, it_will_work, then I_remove_the internet_again, it will stop
here is the error
_ _ 12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime: FATAL
EXCEPTION:_AsyncTask #312-28 21:15:38.954 25196-26197/com.jintionary_E/AndroidRuntime:_Process: com.jintionary, PID: 25196
12-28 21:15:38.954 25196-26197/com.jintionary_E/AndroidRuntime: java.lang.RuntimeException: An error occured while_executing doInBackground()
12-28 21:15:38.954 25196-26197/com.jintionary E/AndroidRuntime:___  at android.os.AsyncTask$3.done(AsyncTask.java:300)
12-28 21:15:38.954_25196-26197/com.jintionary E/AndroidRuntime:    _at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
12-28 21:15:38.954_25196-26197/com.jintionary E/AndroidRuntime:     at_java.util.concurrent.FutureTask.setException(FutureTask.java