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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:40:42+00:00 2026-05-30T12:40:42+00:00

Sorry for my English. I have my own ArrayAdapter for list activity . My

  • 0

Sorry for my English. I have my own ArrayAdapter for list activity . My problem: when I take datas to web service , datas are added ArrayList. Everything is normal up here. Nexus and Android OS 4.0 is listing the data, but other phone and 2.3.3 do not list the data. Everything is normal and I have not received any error.

I have no idea what’s problem. Program listing data with Nexus(OS 4.0), but not listing in 2.3.3.

  • My main activity class is extend ListActivity
    • public static ArrayList freqzo; static MobileArrayAdapter freqz;
    • freqzo=new ArrayList(); freqz=new MobileArrayAdapter(this,freqzo);
    • this.setListAdapter(freqz); ListView lv = getListView();
    • lv.setTextFilterEnabled(true); //And my filling arraylist part: if (store
    • instanceof Vector) { Object[] arr = ((Vector) store).toArray(); for
    • (int i = 0; i < arr.length; i++) { freqzo.add((String) arr[i].toString()); }

My Mobile Adapter class:

public class MobileArrayAdapter extends ArrayAdapter<String> {

    private final Context context;
    private final ArrayList<String> values;

    public MobileArrayAdapter(Context context, ArrayList<String> values) {
        super(context, R.layout.listlayout, values);
        this.context = context;
        this.values = values;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        LayoutInflater inflater = (LayoutInflater) context
            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);

        View rowView = inflater.inflate(R.layout.listlayout, parent, false);
        TextView textView = (TextView) rowView.findViewById(R.id.label);
        ImageView imageView = (ImageView) rowView.findViewById(R.id.logo);

        String s = values.get(position);
        Log.d("Liste", "Liste " + values.get(position));
        if (s != null && !s.equals("")) {
            textView.setText(s);
        }

        // Change icon based on name
        // String s = values[position];

        return rowView;
    }
}
  • 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-30T12:40:43+00:00Added an answer on May 30, 2026 at 12:40 pm

    Maybe after filling your list you should call adapter.notifyDataSetChanged()?

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

Sidebar

Related Questions

First, sorry for my bad english, I'm French. Here the problem : I have
Sorry for my English. I have a strange problem. When user click adword link,
Very Sorry for my english,i have a problem. $(#MainPicture).attr(src, url); CenterImg(); needs to be
First sorry for my English I have a problem with JSON. Assume the following
Sorry ,my English is poor, I have never speak English after I leave the
Sorry for bad english and bad title! I have the table post id title
Sorry for my bad English. Just like what I asked. I have this class
sorry about input mistakes, english its not my mother lang. I have this code
First, sorry for bad english :-) On a little website i own, i would
(sorry for the english) I have a ASP .net webservice that get data from

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.