error during the parsing activity
<p>hi i have created a question answer based app, the question's used to be a random one based on the pictures. There was no error in the coding, the app runs successfully. It enters the main page and to second one too but when i move on to the question answer part the image is been displayed and no more further action on it, the parsing activity of my code starts here it is not going further.</p>

<p>when i placed a try catch block in my coding,  in the logcat it showed us</p>

<pre><code>02-17 14:49:20.582: ERROR/Parsing Pack(1194): Packthumb = butenemethylpropane
02-17 14:49:21.502: ERROR/(1194): orientationvalue1 width = 320 Height = 480
02-17 14:49:21.502: ERROR/(1194): 2130837515
02-17 14:49:21.502: ERROR/(1194): butene_vs_2butene
02-17 14:49:21.532: ERROR/Timerview(1194): L= 20W= 15H= 200
02-17 14:49:21.562: ERROR/ParsingActivity oncreate(1194): ERROR =     android.content.res.Resources$NotFoundException: Resource ID #0x0
</code></pre>

<p>the following is my coding of the parsing activity</p>

<pre><code>try 
        {
            resID = getResources().getIdentifier(name, "raw", "com.menteon.speedimage0102");
            saxparserfactory = SAXParserFactory.newInstance();
            saxparser = saxparserfactory.newSAXParser();
            xmlreader = saxparser.getXMLReader();

            //getting the path of xml to parse
            inputstream = this.getResources().openRawResource(resID);

            xmlreader.setContentHandler(myXMLHandler);
            //parsing the xml
            xmlreader.parse(new InputSource(inputstream));

            //getting the values of xml
            item = myXMLHandler.getitem();
            menteon = myXMLHandler.getmenteon();
            polygon = myXMLHandler.getpolygon();
            point = myXMLHandler.getpoint();


            orientation = menteon.getOrientation();
            o = menteon.getItem().size();
            Log.e("ParsingActivity", "Orientation = "+orientation);
            Log.e("ParsingActivity", "menteon size = "+o);

            //calling function for random number
            qnumber();

            if(orientation.equalsIgnoreCase("portrait") &amp;&amp; orientationvalue==2 )
            {
                alertportrait(orientation, orientationvalue);   
            }
            else  if(orientation.equalsIgnoreCase("landscape") &amp;&amp; orientationvalue==1 )
            {
                alertlandscape(orientation, orientationvalue);
            }
            if(orientation.equalsIgnoreCase("portrait") &amp;&amp; orientationvalue==1)
            {
                setRequestedOrientation(1);
                alertstart();
            }
            else if(orientation.equalsIgnoreCase("landscape")&amp;&amp; orientationvalue==2)
            {
                setRequestedOrientation(2);
                alertstart();
            }

        }
        catch (Exception e) 
        {
            e.printStackTrace();
            Log.e("ParsingActivity oncreate", "ERROR = "+e);
        }


}   
</code></pre>

<p>pls help me in debugging my error</p>
