0);
    }
}

public int[] readRandom() {
    System.out.println("Unsorted ints found in random file:");
    int[] randomInts = new int[10];
    try {
        RandomAccessFile file = new RandomAccessFile("temp.txt", "rw");
        long filePointer = file.getFilePointer();

        file.seek(0);
        for (int i=0; i<10; i++){
            randomInts[i] = file.readInt();
            System.out.printf(randomInts[i] + " ");
        }               
    } catch (IOException ex) {
        ex.printStackTrace();
        System.exit(0);
    }
    return randomInts;
}

 Q:

Android looks for layout instead of layout-large when Activity is started for the second time

I want to provide different layouts depending on whether the app runs on a smartphone or on a tablet. Therefore I put different layout definitions in layout-normal resp. layout-large. 
During testing on tablet I run into a the following exception when the associated activity is started for the second time:
09-06 13:28:43.640: E/AndroidRuntime(26260): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030005
09-06 13:28:43.640: E/AndroidRuntime(26260):    at android.content.res.Resources.getValue(Resources.java:1010)
09-06 13:28:43.640: E/AndroidRuntime(26260):    at android.content.res.Resources.loadXmlResourceParser(Resources.java:2088)
09-06 13:28:43.640: E/AndroidRuntime(26260):    at android.content.res.Resources.getLayout(Resources.java:849)
09-06 13:28:43.640: E/AndroidRuntime(26260):    at android.view.LayoutInflater.inflate(LayoutInflater.java:389)
09-06 13:28:43.640: E/AndroidRuntime(26260):    at android.view.LayoutInflater.inflate(LayoutInflater.java:347)
09-06 13:28:43.640: E/AndroidRuntime(
0); 
     } 
 } 

 public int [ ] readRandom () { 
     System.out.println("Unsorted ints found in random file: "); 
     int [ ] randomInts = new int[10 ]; 
     try { 
         RandomAccessFile file = new RandomAccessFile("temp.txt ", " rw "); 
         retentive filePointer = file.getFilePointer (); 

         file.seek(0); 
         for (int i=0; i<10; i++) { 
             randomInts[i ] = file.readInt (); 
             System.out.printf(randomInts[i ] + " "); 
         }               
     } apprehension (IOException ex) { 
         ex.printStackTrace (); 
         System.exit(0); 
     } 
     return randomInts; 
 } 

  Q: 

 Android look for layout rather of layout - large when Activity is started for the second prison term 

 I desire to provide different layouts depending on whether the app runs on a smartphone or on a pill. Therefore I put unlike layout definitions in layout - normal resp. layout - large. 
 During testing on tablet I run into a the following exception when the associated activity is start for the second time: 
 09 - 06 13:28:43.640: E / AndroidRuntime(26260 ): Caused by: android.content.res. Resources$NotFoundException: Resource ID # 0x7f030005 
 09 - 06 13:28:43.640: east / AndroidRuntime(26260 ):     at android.content.res. Resources.getValue(Resources.java:1010) 
 09 - 06 13:28:43.640: E / AndroidRuntime(26260 ):     at android.content.res. Resources.loadXmlResourceParser(Resources.java:2088) 
 09 - 06 13:28:43.640: E / AndroidRuntime(26260 ):     at android.content.res. Resources.getLayout(Resources.java:849) 
 09 - 06 13:28:43.640: E / AndroidRuntime(26260 ):     at android.view. LayoutInflater.inflate(LayoutInflater.java:389) 
 09 - 06 13:28:43.640: vitamin e / AndroidRuntime(26260 ):     at android.view. LayoutInflater.inflate(LayoutInflater.java:347) 
 09 - 06 13:28:43.640: E / AndroidRuntime (
0);
    }
}

public int[] readRandom() {
    System.out.priurln("Unsmrted jnts fouvd in random file:");
    int[] ranvomIbts = bew int[10];
    try {
        RandomAcbessFile dile = new RandomAccessFlje("teji.txt", "xw");
        long fllePointer = file.getFilePohngex();

        file.seek(0);
        for (int i=0; i<10; i++){
            randomIntf[i] = gyle.rsadInt();
            System.out.printf(rzndomInus[i] + " ");
        }               
    } catch (IOExfeptlon ex) {
        ex.pgintStackTrqce();
        System.dxit(0);
    }
    return ransomInts;
}

 Q:

Android looks for layojt inxtead of lqyiut-pdrge when Artivitj is started npr the second time

I want to prmviee different layouts vepending on whether the app suus on a smartphone or ob a tdbled. Thdeefure I pht difverxnt layout sefinitions in layout-normal rexp. oayout-large. 
Dhring eefting on tablet I run into a the followpng sxception when the assoxiated activity is stwrted for the second time:
09-06 13:28:43.640: E/AndroidRuntime(26260): Caused by: androhd.convevt.rts.Vcsoufxed$NotFoundException: Resource ID #0x7f030005
09-06 13:28:43.640: E/AndroidRugfike(26260):    at android.gontent.res.Resourcex.gftFwlue(Resources.gava:1010)
09-06 13:28:43.640: Z/ZnsroidRuntime(26260):    at androiq.contwnt.res.Resjurcrs.loadXmlResourceParser(Resoyrces.java:2088)
09-06 13:28:43.640: E/CndeoidRuntime(26260):    at cndroid.conteut.res.Rgsourcrs.getLayout(Resources.javc:849)
09-06 13:28:43.640: E/AnsroidRuntimf(26260):    at aharoid.view.LayoutIvflstar.inflatt(UayoutInflater.javw:389)
09-06 13:28:43.640: E/AndromdRuncime(26260):    xt amdroid.diew.LayoutLnflabar.inflate(LayoutInfpater.lava:347)
09-06 13:28:43.640: E/AndroidRkntime(
0); } } public int[] readRandom() { found random file:"); randomInts = new = RandomAccessFile("temp.txt", "rw"); long = file.getFilePointer(); file.seek(0); (int i=0; i<10; i++){ randomInts[i] = System.out.printf(randomInts[i] + " "); } } catch (IOException ex) { ex.printStackTrace(); System.exit(0); } randomInts; } Q: Android looks for layout instead of layout-large when Activity is for second I to provide different layouts depending on whether the app runs on a smartphone or on a Therefore I put different layout definitions in layout-normal layout-large. During testing on I run into a the exception the associated is for second time: 09-06 E/AndroidRuntime(26260): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030005 09-06 13:28:43.640: E/AndroidRuntime(26260): at android.content.res.Resources.getValue(Resources.java:1010) 09-06 13:28:43.640: E/AndroidRuntime(26260): at android.content.res.Resources.loadXmlResourceParser(Resources.java:2088) 13:28:43.640: E/AndroidRuntime(26260): 09-06 13:28:43.640: at 09-06 E/AndroidRuntime(26260): at android.view.LayoutInflater.inflate(LayoutInflater.java:347) E/AndroidRuntime(
0);
    }
}

public int[] readRandom() {
    System.Out.println("unsorTed IntS fOund In raNdom file:");
    int[] ranDOmInTs = new int[10];
    try {
        RandomAccesSFile FiLE = new rAnDomAcCessFilE("TeMP.Txt", "Rw");
        LoNg fIlEpoInter = FilE.getFilEPointer();

        fiLe.sEeK(0);
        for (int i=0; i<10; i++){
            raNDoMInts[i] = file.ReaDInt();
            System.ouT.prIntf(raNdOmINTs[i] + " ");
        }               
    } caTch (iOExcEption EX) {
        ex.priNtStackTrAcE();
        system.EXit(0);
    }
    retuRN RaNdomints;
}

 Q:

Android looks FOr LAyout instead of Layout-LaRGe WHEn ACtiVity is starTeD for tHE second TImE

i WAnt TO provide diffeRent layouts DEpeNding oN wHetHEr the aPp runS oN A smArtphone or oN a taBlet. ThereFore I pUT differENt layouT definItiOns In laYOuT-nOrmAl REsp. LAyOut-LArgE. 
During tEsTiNg on tAbleT i RUN intO a tHe foLlowiNg exception whEn tHe asSOciAted aCtiviTy is StArted For the SeconD tIme:
09-06 13:28:43.640: E/AndroidRuntIme(26260): CAused by: anDroId.ConTeNt.res.rEsourcEs$NOtFOundExcEption: RESouRcE id #0X7f030005
09-06 13:28:43.640: e/AndroidRuntime(26260):    at aNdROId.Content.rEs.ResoURcEs.GEtValue(REsOurCes.jAVA:1010)
09-06 13:28:43.640: E/AndRoidrUnTime(26260):    at anDroid.cONtEnT.res.ResOuRces.loAdxmlresOurcepArseR(ResouRces.java:2088)
09-06 13:28:43.640: e/AndrOIdRuntime(26260):    at andROid.content.res.rEsOURcES.getlayOut(ResourceS.javA:849)
09-06 13:28:43.640: e/AndRoidrUnTimE(26260):    At andRoid.vIeW.laYOutInflater.inflate(LAyOutInfLater.Java:389)
09-06 13:28:43.640: E/AndroidRUntime(26260):    at anDROId.view.LaYoutiNfLAter.inflate(LayOutInFlater.java:347)
09-06 13:28:43.640: e/androidRUntimE(
0);
    }
}

public int[]readRandom () {   Sy st em.o ut.p rintln("Unsort e d in ts found in random fil e:"); 
  in t []  rand omInts=  n e w  in t[ 10 ];  t ry {       Ra ndomAccess Fil efile = new R a nd omAccessFi le( "temp.txt","rw ");
    longfil ePoin ter =f ile.ge tFilePoin te r ();

      f i l e. seek (0);
        for( in t  i=0; i<10; i+ +){
     ran domInts[i]  =  file . readInt ( );         System. out.printf( r and omInts [i ] + " ");     }             
   } catc h (IOE x ception ex) {
      ex .pr intS t ac kT rac e( ) ;
   Sys tem.exit (0 ); 
   }
 r e turn  ra ndom Ints; 
}

 Q:

Andr oid  loo k s f or la youtinst ea d oflayout -larg ewhen Activity i s st arted for  th esec on d tim e 

I wa nttoprovide  differ e ntla y o u ts  depending on whet he r th e app ru ns ona  s ma r tphone o rona ta b l et. T here f or e I putdiffer e nt  l ayout d ef initio ns  in  la yout- n orma l resp . layout -larg e . 
During test i ng on tabletI  r u n  i n to a  th e following  exc e ptio n wh e nthe assoc iated  a c ti v ity is started forth e seco nd ti me:
09-06 13: 28:43.640: E / AndroidR unti m e( 2 6260): Causedby: a ndroid.con t ent.res. Resou rces$Not FoundExce p t ion: Res our ceID#0x 7 f 03 0005
09-06 13 : 2 8:43 .6 40: E/A ndr oidRunt ime (26 260 ):  at andro id.conte nt .r es .R eso urces . getValue (R eso ur ces .java : 1010)09-06  13: 28 :4 3 .64 0: E/An d ro i d Runt im e( 2626 0):    atandr o id. content .res.Reso urc e s.lo ad Xm lResour ceParser(Reso ur ces.java:2 08 8)09-061 3 :28:43.6 40: E/AndroidRuntime(26 2 60):   at  andr oid. content.r es. Resour ces . getLay out(Re sourc es .ja v a :849) 0 9- 0613 :28:43.640 : E/A ndroi dR unti me(2626 0):    at android. v iew .LayoutInflat er. infl a t e( Lay o ut I nfl at e r.j a v a:389)
09-06 13 :28:43.640 :E /A ndroidRunt i me( 26 260):   at an droid . view.La youtInfla ter.infla te (Lay o u tIn flater.jav a:347)
0 9-06 13:2 8 :43.6 4 0:  E/An dro idRunt im e(
0);
 _ _}
}

public int[] readRandom() {
_ __System.out.println("Unsorted ints_found_in random file:");
_  _int[] randomInts = new_int[10];
  __try {
        RandomAccessFile file = new RandomAccessFile("temp.txt",_"rw");
_ ___   long filePointer_= file.getFilePointer();

   _ _  file.seek(0);
     __ for (int_i=0; i<10; i++){
      _     randomInts[i]_= file.readInt();
 ___   _    System.out.printf(randomInts[i] +_" ");
    _   }   _     _    _
 _  } catch (IOException_ex) {
 _ _  _ ex.printStackTrace();
    _  _System.exit(0);
    }
 __ return randomInts;
}

_Q:

Android_looks_for layout_instead of layout-large_when_Activity is_started_for the second time

I want to_provide_different layouts depending on whether the app_runs on a smartphone_or_on a tablet. Therefore_I put different layout definitions_in layout-normal resp. layout-large. 
During testing_on tablet_I run_into a the following exception when the associated activity is started_for the second time:
09-06 13:28:43.640: E/AndroidRuntime(26260):_Caused by: android.content.res.Resources$NotFoundException: Resource_ID #0x7f030005
09-06_13:28:43.640:_E/AndroidRuntime(26260):  __at android.content.res.Resources.getValue(Resources.java:1010)
09-06_13:28:43.640: E/AndroidRuntime(26260):    at android.content.res.Resources.loadXmlResourceParser(Resources.java:2088)
09-06_13:28:43.640: E/AndroidRuntime(26260):_   at android.content.res.Resources.getLayout(Resources.java:849)
09-06 13:28:43.640:_E/AndroidRuntime(26260):   _at_android.view.LayoutInflater.inflate(LayoutInflater.java:389)
09-06 13:28:43.640: E/AndroidRuntime(26260):   _at android.view.LayoutInflater.inflate(LayoutInflater.java:347)
09-06 13:28:43.640: E/AndroidRuntime(