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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:10:47+00:00 2026-06-09T22:10:47+00:00

I Founded my problem in this post Updating ExpandableListView with notifyDataSetChanged() each time you

  • 0

I Founded my problem in this post Updating ExpandableListView with notifyDataSetChanged()

“each time you refresh the the views using setNotifyDatasetChanged the Adapter will call the loop around the List. and you List in the Adapter gets a null value due to the changes you made.”

I am beginner and can not properly make changes to the list

my sources

public class UrlArrayAdapter extends ArrayAdapter<UrlItem> {

    private LayoutInflater inflater;
    private ListView urlListView1;
    private ArrayList<UrlItem> urlItems1;

    public UrlArrayAdapter(Context context, ListView urlListView,
            ArrayList<UrlItem> urlLists) {
        super(context, urlListView.getId(), urlLists);
        this.urlItems1 = urlLists;
        this.urlListView1 = urlListView;


        inflater = LayoutInflater.from(context);

how do I remove an item from the list in urlLists in the base adapter??

  • 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-09T22:10:49+00:00Added an answer on June 9, 2026 at 10:10 pm

    In addition to overriding public View getView(int position, View view, ViewGroup parent), make sure your class that extends ArrayAdapter overrides these methods:

    public int getCount()
    public UrlItem getItem(int position)
    public int getPosition(Hold item)
    public long getItemId(int position)
    

    I believe notifyDataSetChanged() will call getCount() on your adapter to determine how many items there are. If you don’t override this method with return urlItems1.size(); then an IndexOutOfBoundException seems imminent because there will be no way for your custom adapter to tell clients about its size and contents.

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

Sidebar

Related Questions

I'm dealing with viewDidUnload and dealloc methods and I've founded a problem when calling
EDIT 23/11 : Solution founded ... I wrote $_db instead $this->_db in the constructor
I am using libxml2 under python. Unfortunatly the python version of this library is
I founded that the problem is the place where I'm calling the showNextView. I
In this code I want to change the string founded to integer and want
I have a small problem but couldn't find solution for that. I have founded
I founded some code to correctly shutdown java application from C# console application, using
I am dumb founded at this statement....maybe its just too many hours/days of doing
While using some of the DateTime Function's at local machine ,later i founded out
for starters: I searched for hours on this problem by now - so if

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.