Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3975958
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:44:51+00:00 2026-05-20T04:44:51+00:00

hi i have created a question answer based app, the question’s used to be

  • 0

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.

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

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

the following is my coding of the parsing activity

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") && orientationvalue==2 )
            {
                alertportrait(orientation, orientationvalue);   
            }
            else  if(orientation.equalsIgnoreCase("landscape") && orientationvalue==1 )
            {
                alertlandscape(orientation, orientationvalue);
            }
            if(orientation.equalsIgnoreCase("portrait") && orientationvalue==1)
            {
                setRequestedOrientation(1);
                alertstart();
            }
            else if(orientation.equalsIgnoreCase("landscape")&& orientationvalue==2)
            {
                setRequestedOrientation(2);
                alertstart();
            }

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


}   

pls help me in debugging my error

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:44:52+00:00Added an answer on May 20, 2026 at 4:44 am

    The error is coming from the line

    resID = getResources().getIdentifier(name, "raw", "com.menteon.speedimage0102");
    

    which results the exception

    android.content.res.Resources$NotFoundException
    

    This exception is thrown by the resource APIs when a requested resource can not be found.

    Please make sure that you have a resource same as specified name.

    Hope this will help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question regarding an update function I created... CREATE OR REPLACE FUNCTION
I have created online exam application (web based) in asp.net c#. In my application
this question can create a misunderstanding: I know I have to use CSS to
I'm new to postgreSQL and I have a simple question: I'm trying to create
Have created a c++ implementation of the Hough transform for detecting lines in images.
I have created a template for Visual Studio 2008 and it currently shows up
I have created a custom dialog for Visual Studio Setup Project using the steps
I have created a PHP-script to update a web server that is live inside
I have created a UserControl that has a ListView in it. The ListView is
I have created a C# class file by using a XSD-file as an input.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.