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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:54:15+00:00 2026-05-26T13:54:15+00:00

Dont get display data in listview.i got parser list success fully but integration with

  • 0

Dont get display data in listview.i got parser list success fully but integration with costume adapter of listview get frustration.I Dont think that problem in parser it get success in logcat but now lazy load and display problem are raise.

Error:

 11-02 12:10:58.470: WARN/PackageManager(613): Failure retrieving icon 0x7f020000 in package com.SAXParser1
11-02 12:10:58.470: WARN/PackageManager(613): android.content.res.Resources$NotFoundException: Resource ID #0x7f020000
11-02 12:10:58.470: WARN/PackageManager(613):     at android.content.res.Resources.getValue(Resources.java:846)
11-02 12:10:58.470: WARN/PackageManager(613):     at android.content.res.Resources.getDrawable(Resources.java:534)
11-02 12:10:58.470: WARN/PackageManager(613):     at android.app.ApplicationContext$ApplicationPackageManager.getDrawable(ApplicationContext.java:1923)
11-02 12:10:58.470: WARN/PackageManager(613):     at android.content.pm.ComponentInfo.loadIcon(ComponentInfo.java:88)
11-02 12:10:58.470: WARN/PackageManager(613):     at com.android.launcher.LauncherModel.updateApplicationInfoTitleAndIcon(LauncherModel.java:452)
11-02 12:10:58.470: WARN/PackageManager(613):     at com.android.launcher.LauncherModel.updateAndCacheApplicationInfo(LauncherModel.java:257)
11-02 12:10:58.470: WARN/PackageManager(613):     at com.android.launcher.LauncherModel.updatePackage(LauncherModel.java:242)
11-02 12:10:58.470: WARN/PackageManager(613):     at com.android.launcher.Launcher$ApplicationsIntentReceiver.onReceive(Launcher.java:1865)
11-02 12:10:58.470: WARN/PackageManager(613):     at android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run(ActivityThread.java:664)
11-02 12:10:58.470: WARN/PackageManager(613):     at android.os.Handler.handleCallback(Handler.java:587)
11-02 12:10:58.470: WARN/PackageManager(613):     at android.os.Handler.dispatchMessage(Handler.java:92)
11-02 12:10:58.470: WARN/PackageManager(613):     at android.os.Looper.loop(Looper.java:123)
11-02 12:10:58.470: WARN/PackageManager(613):     at android.app.ActivityThread.main(ActivityThread.java:3948)
11-02 12:10:58.470: WARN/PackageManager(613):     at java.lang.reflect.Method.invokeNative(Native Method)
11-02 12:10:58.470: WARN/PackageManager(613):     at java.lang.reflect.Method.invoke(Method.java:521)
11-02 12:10:58.470: WARN/PackageManager(613):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
11-02 12:10:58.470: WARN/PackageManager(613):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
11-02 12:10:58.470: WARN/PackageManager(613):     at dalvik.system.NativeStart.main(Native Method)

Code ::

package com.SAXParser1;

import java.net.URL;
import java.util.ArrayList;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

public class SAXParser1 extends Activity implements OnItemClickListener {
    /** Called when the activity is first created. */
    String RequestID;
    String Status;
    String URL1;
    String ActivityName;
    String AudioScript;
    ListView lview;

    String[] Arr_RequestID;
    String[] Arr_Status;
    String[] Arr_ActivityName;
    String[] Arr_AudioScript;

    ArrayList<String> al_RequestID;
    ArrayList<String> al_Status;
    ArrayList<String> al_ActivityName;
    ArrayList<String> al_AudioScript;

    ListViewAdapter lviewAdapter;


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        String url = "URL";
        SaxParser(url);
        try {
            lview = (ListView) findViewById(R.id.listView2);
            lviewAdapter = new ListViewAdapter(this, Arr_ActivityName,
                    Arr_AudioScript);

            System.out.println("adapter => " + lviewAdapter.getCount());

            lview.setAdapter(lviewAdapter);

            lview.setOnItemClickListener(this);
        } catch (Exception e) {
            // TODO: handle exception
        }

    }

    public void onItemClick(AdapterView<?> arg0, View arg1, int position,
            long id) {

    }

    public void SaxParser(String url) {

        try {

            URL sourceUrl = new URL(url);

            SAXParserFactory spf = SAXParserFactory.newInstance();
            SAXParser sp = spf.newSAXParser();
            XMLReader xr = sp.getXMLReader();
            Handler1 dataHandler = new Handler1();
            xr.setContentHandler(dataHandler);
            xr.parse(new InputSource(sourceUrl.openStream()));
            Dataset dataset = dataHandler.getParsednewJobdtl_DataSet();
            Toast.makeText(getBaseContext(), "sourceUrl" + sourceUrl,
                    Toast.LENGTH_LONG);

            RequestID = dataset.getRequestID();
            /*System.out.println(RequestID);*/
            al_ActivityName = dataHandler.getActivityName();
            al_AudioScript = dataHandler.getAudioScript();
            al_RequestID = dataHandler.getRequestId();
            al_Status = dataHandler.getStatus();


            Arr_ActivityName = al_ActivityName
                    .toArray(new String[al_ActivityName.size()]);
            Arr_AudioScript = al_AudioScript.toArray(new String[al_AudioScript
                    .size()]);
            Arr_RequestID = al_RequestID
                    .toArray(new String[al_RequestID.size()]);
            Arr_Status = al_Status.toArray(new String[al_Status.size()]);

            Toast.makeText(getBaseContext(), "al_Status " + al_RequestID,
                    Toast.LENGTH_LONG);
            Status = dataset.getStatus();
            Toast.makeText(getBaseContext(), "al_Status " + al_Status,
                    Toast.LENGTH_LONG);
            ActivityName = dataset.getActivityName();
            Toast.makeText(getBaseContext(), "al_ActivityName " + al_ActivityName,
                    Toast.LENGTH_LONG);
            AudioScript = dataset.getAudioScript();
            Toast.makeText(getBaseContext(), "al_AudioScript " + al_AudioScript,
                    Toast.LENGTH_LONG);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}

ListViewAdapter::

package com.SAXParser1;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class ListViewAdapter extends BaseAdapter {
    Activity context;
    String title[];
    String description[];

    public ListViewAdapter(Activity context, String[] title,
            String[] description) {
        super();
        this.context = context;
        this.title = title;
        this.description = description;
    }

    public int getCount() {
        // TODO Auto-generated method stub
        return title.length;
    }

    public Object getItem(int position) {
        // TODO Auto-generated method stub
        return null;
    }

    public long getItemId(int position) {
        // TODO Auto-generated method stub
        return 0;
    }

    private class ViewHolder {
        TextView txtViewTitle;
        TextView txtViewDescription;
    }

    public View getView(int position, View convertView, ViewGroup parent) {
        // TODO Auto-generated method stub
        ViewHolder holder;
        LayoutInflater inflater = context.getLayoutInflater();

        if (convertView == null) {
            convertView = inflater.inflate(R.layout.listitem_row, null);
            holder = new ViewHolder();
            holder.txtViewTitle = (TextView) convertView
                    .findViewById(R.id.textView1);
            holder.txtViewDescription = (TextView) convertView
                    .findViewById(R.id.textView2);
            convertView.setTag(holder);
        } else {
            holder = (ViewHolder) convertView.getTag();
        }

        holder.txtViewTitle.setText(title[position]);
        holder.txtViewDescription.setText(description[position]);

        return convertView;
    }

}
  • 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-26T13:54:18+00:00Added an answer on May 26, 2026 at 1:54 pm

    Clean the project using project->clean and make sure you have checked “Build Automatically” in project menu.

    FYI, just check Resources.NotFoundException,there is clearly written that this exception raises whenever the request resource doesn’t found so its better that you check the icon that you have to tried to use inside your code. If you don’t find the id of the same icon in R.java file then re-generate the R.java by above way.

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

Sidebar

Related Questions

i am trying to get some data, but i dont know how can i
I want to do some innerHTML replacements, but using PHP includes, I dont get
I am trying to get a pie chart display correctly but have found there
My jqGrid, displays columns, retrieves the data but it does not display them in
I working on xml parsing..... its parsed data success fully . i need to
How do I get VS to populate my ListView with sample data in the
I want to fetch data from SQLITE database and display it in a LIST.
I dont get it. I have used a similar/same approach for many years now,
I recently downloaded IMDbpy module.. When I do, import imdb help(imdb) i dont get
Ok... I tried google and didn't get many hits. I dont want to abuse

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.