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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:33:39+00:00 2026-06-18T19:33:39+00:00

I am developing small android application which having integration Sherlock.In my application I am

  • 0

I am developing small android application which having integration Sherlock.In my application I am using Sherlock list fragment in which I am displaying list items fetched from local database.

lv = getListView();
from = new String[] { Table.COLUMN_DESC1,COLUMN_DESC2, COLUMN_COUPONID };
to = new int[] { R.id.textView1, R.id.textView2, R.id.textView4 };
adapter = new SimpleCursorAdapter(this.getActivity(),R.layout.coupon, null, from, to, 0);
setListAdapter(adapter);
getLoaderManager().restartLoader(0, bundle, this);

Now problem is that when i ran this code on ics version of android its working fine but when i ran this on android 2.3.3 it gives following problem.

My application contains one main activity and two fragments f1, f2

when i switch from f1 to f2 its working fine without any error..

when i again switch from f2 to f1 its working fine

but when I again switch from f1 to f2 it gives following error.

01-03 01:37:04.175: E/AndroidRuntime(8010): FATAL EXCEPTION: main
01-03 01:37:04.175: E/AndroidRuntime(8010): java.lang.NoSuchMethodError:android.widget.SimpleCursorAdapter.<init>

on newer version of android works fine with this code but on older version its not working fine….
I am not able to figure out what is the problem behind it..
Need help…
Thank you…

  • 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-18T19:33:40+00:00Added an answer on June 18, 2026 at 7:33 pm

    Try changing your Import to

    import android.support.v4.widget.SimpleCursorAdapter;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a small application in android in which i have few image
I am developing a small application which lists the contents from files of a
I am developing a small application on Google's android emulator. I am trying to
I am currently developing an android application which requires two devices to communicate over
I am developing a small android application. When the user hasn't signed up, he
I am developing an small application in a android. Before this i had done
I'm developing a small application but I'm having problem while deploying the application on
I have question I'm developing small application to desktop in win Forms. I'm using
I am developing an android application in which i have to store a bitmap
Hi am developing android application. I have some small doubt of how to change

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.