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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:50:07+00:00 2026-06-18T23:50:07+00:00

So I found some code that I am trying to get working. I am

  • 0

So I found some code that I am trying to get working. I am new to Android/Exclipse/Java and still trying to wrap my head around the whole thing. However, I am starring myself blind.

Say I have this:

private class RSSListAdapter extends ArrayAdapter<MyRSSItem> {
  private List<MyRSSItem> objects = null;        
  public RSSListAdapter(Context context, int viewid, List<MyRSSItem> objects) {
    super(context, viewid, objects);                       
    this.objects = objects;            
  }
}

and then elsewhere this:

myRssAdapter = new RSSListAdapter(thisActivityContext, newsListView, myItemsDataArrayList);

where myItemsDataArrayList is declared like this:

ArrayList<MyRSSItem> myItemsDataArrayList = new ArrayList<MyRSSItem>();

I get this error:

The constructor News.RSSListAdaptor(Context, ListView, ArrayList) is undefined

Of course I have tried Google, but, well, no luck.

  • 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-06-18T23:50:08+00:00Added an answer on June 18, 2026 at 11:50 pm

    The constructor’s definition is this:

    public RSSListAdapter(Context context, int viewid, List<MyRSSItem> objects) {
    

    This means it accepts in only a Context, an int, and a List <MyRSSItem>

    However, you call the constructor with these arguments:

    new RSSListAdapter(thisActivityContext, newsListView, myItemsDataArrayList);
    

    the second argument is a newsListView, which isn’t an int, it is a ListView. They are not the same type, hence the compile-time error.

    If you change to android.R.id.text1, it should work, since that is a valid TextView id, like the superclass constructor requires.

    And definitely don’t forget to set the ListView‘s adapter to your RSSListAdapter after creating it.

    For more detailed info, this tutorial is pretty helpful.

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

Sidebar

Related Questions

I am trying to merge some code behind code for .net that I found
I'm working with some code that I've found online and I don't quite understand
I'm trying get some licensing code from AndroidPit.com working, but I get Unable to
Hello I am working on a java code that is suppose to get the
today I am basically trying to create some JAVA code that moves an actor
I just opened a file in IDA Pro and I found some code that
I found some old Python code that was doing something like: if type(var) is
A coworker recently showed me some code that he found online. It appears to
I found some mapkit code on the internet that looks like this: - (void)recenterMap
I was refactoring some code and found there are two places that can be

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.