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

  • SEARCH
  • Home
  • 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 6889189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:07:26+00:00 2026-05-27T06:07:26+00:00

Exception is : Resources.NotFoundException 11-30 17:38:17.843: I/class fyp.proj.crud.DisplayProjects$ListAdapter(967): android.content.res.Resources$NotFoundException: String resource ID #0x9 Firstly,

  • 0

Exception is : Resources.NotFoundException

11-30 17:38:17.843: I/class fyp.proj.crud.DisplayProjects$ListAdapter(967): android.content.res.Resources$NotFoundException: String resource ID #0x9

Firstly, I’ve looked at several answers already, but this seems a little more specific.

I’m having real difficulty tracking the problem with a ListAdapter, the items dont display anything I know an exception is being thrown, because its being caught and I’m attempting to log it – however all the log says is

11-30 15:33:06.703: I/class fyp.proj.crud.DisplayPlacements$ListAdapter(400): String resource ID #0x7

the values I’m trying to put into the listitem are set, the rather crude sys.err proves this. it is also worth noting that the number of items in the list expands when I insert or delete data, its just not visible

code below.

/* ListAdapter */
private class ListAdapter extends ArrayAdapter<Placement> {
private ArrayList<Placement> mList;

public ListAdapter(Context context, int textViewResourceId,
    ArrayList<Placement> list) {
    super(context, textViewResourceId, list);
    this.mList = list;
}

public View getView(int position, View convertView, ViewGroup parent) {
    View view = convertView;
    try {
    if (view == null) {
        LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        view = vi.inflate(R.layout.list_item, null);
    }
    final Placement p = mList.get(position);
    if (p != null) {

        // setting list_item views

        /* some error in here means that the items aren't being set */
        System.err.println(p.getTitle() + " "
            + p.getId());
        /*
         * this sys.err gets the details sucessfully from the
         * placement object
         */

        ((TextView) view.findViewById(R.id.tv_id)).setText(p
            .getId());
        ((TextView) view.findViewById(R.id.tv_title)).setText(p
            .getTitle());
        ((TextView) view.findViewById(R.id.tv_desc)).setText(p
            .getDesc());
    }
    } catch (Exception e) {
    Log.i(DisplayProjects.ListAdapter.class.toString(),
        e.getMessage());
    }
    return view;
}
  • 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-27T06:07:27+00:00Added an answer on May 27, 2026 at 6:07 am

    This line could be the problem:

    ((TextView) view.findViewById(R.id.tv_id)).setText(p.getId());
    

    if getId is not returning a String the number is meant as resource id. Try:

    ...setText(String.valueOf(p.getId()));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I published app at the Market and I keep getting error: Exception class: android.content.res.Resources$NotFoundException
Exception in thread Thread-2 java.lang.NumberFormatException: For input string: 3 int test = Integer.parseInt(result[0]); This
When Exception is displayed (or more general - when it is converted to String)
I have : Dim con As New OleDbConnection(My.Resources.ConnectionString) // Give exception = Format of
For some reason the following code is giving me an exception. <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries>
In my ZF project's application.ini, I've set resources.frontController.params.displayExceptions = 1. However, if an exception
I never encountered this exception before org.eclipse.core.internal.resources.ResourceException: Resource '/External Plug-in Libraries' is not open.
I always get a Resources$NotFoundException but i don't know why. Please help Code: @Override
I want to load resource that is located in android.R.attr class. Next code failed
Exception: Cannot convert the value in attribute 'Text' to object of type 'System.String'. Unable

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.