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 6671323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:22:29+00:00 2026-05-26T03:22:29+00:00

I have some data in a table on my database. On a column I

  • 0

I have some data in a table on my database. On a column I have integer values that refer to a string resource.

I want that when I load the values with my adapter my ListView display the String related to the value, but not the integer value itself.

    String[] nfrom = {ProfileManager.EVENT_NAME,ProfileManager.NAME,ProfileManager.PRIORITY};
    int[] nto = {R.id.eventType,R.id.profileToSwitch,R.id.priority};

    triggersCursor = profileManager.getAllModTriggerCursors();
    startManagingCursor(triggersCursor);
    triggersAdapter = new SimpleCursorAdapter(this,R.layout.trigger_item_layout,triggersCursor,nfrom,nto);
    lst_triggers.setAdapter(triggersAdapter);

The ListView display ‘2131034132’, not the String.

I hope my explanation is clear.

Thanks in advance!

  • 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-26T03:22:30+00:00Added an answer on May 26, 2026 at 3:22 am

    Use a SimpleCursorAdapter.ViewBinder to customize the binding process for this field. For Example:

    setViewValue(...){
       boolean isCustomBinding = false;
    
       if(view.getId() == R.id.my_id){
           TextView tv = (TextView) view;
           tv.setText(cursor.getInt(columnIndex));
           isCustomBinding = true;
       }
    
       return isCustomBinding; // returning false will allow the automatic binder to work.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a nutshell: I have some database table data that I want to populate
I have a database table full of some really ugly and messy data. In
I have some data that I have to display as a table. I think
I have to delete some rows from a data table. I've heard that it
I have a data table which already has some values, plus it is getting
I have an Excel table with some data that I would like to export
I have some data grouped in a table by a certain criteria, and for
I have some data I am querying. The table is composed of two columns
i have some rows of data displayed in a table and on mouse over
Ok, I have a table which contains multiple rows. Each row contains some data

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.