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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:12:23+00:00 2026-05-26T12:12:23+00:00

I am trying to use the ImageLoader class from libs-for-android (http://code.google.com/p/libs-for-android/), and am getting

  • 0

I am trying to use the ImageLoader class from libs-for-android (http://code.google.com/p/libs-for-android/), and am getting the following exception:

java.lang.IllegalStateException: ImageLoader not available
  579          AndroidRuntime  E    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
  579          AndroidRuntime  E    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
  579          AndroidRuntime  E    at android.app.ActivityThread.access$1500(ActivityThread.java:117)
  579          AndroidRuntime  E    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
  579          AndroidRuntime  E    at android.os.Handler.dispatchMessage(Handler.java:99)
  579          AndroidRuntime  E    at android.os.Looper.loop(Looper.java:123)
  579          AndroidRuntime  E    at android.app.ActivityThread.main(ActivityThread.java:3683)
  579          AndroidRuntime  E    at java.lang.reflect.Method.invokeNative(Native Method)
  579          AndroidRuntime  E    at java.lang.reflect.Method.invoke(Method.java:507)
  579          AndroidRuntime  E    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839
                                  )
  579          AndroidRuntime  E    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  579          AndroidRuntime  E    at dalvik.system.NativeStart.main(Native Method)
  579          AndroidRuntime  E  Caused by: java.lang.IllegalStateException: ImageLoader not available
  579          AndroidRuntime  E    at com.google.android.imageloader.ImageLoader.get(ImageLoader.java:103)

(There is a demo app on their website linked above that I am following as an example: http://code.google.com/p/libs-for-android/source/browse/demos/jamendo/src/com/google/android/demos/jamendo/widget/AlbumGalleryAdapter.java)

I am trying to use the ImageLoader inside of a PagerAdapter, here is the relevant code (it’s the bind statement thats causing the exception):

public FeaturedImagePagerAdapter(Context context, ArrayList<JSONObject> images) {
        this.cxt = context;
        mImages = images;
        mLoader = ImageLoader.get(this.cxt);
    }

@Override
    public Object instantiateItem(View collection, int position) {
        LayoutInflater inflater = (LayoutInflater) cxt
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        LinearLayout featured_image_layout = (LinearLayout) inflater.inflate(R.layout.featured_image_item, null);


        // code omitted from this area that does some setup with the layout above.

        ImageView image = (ImageView) featured_image_layout.findViewById(R.id.featured_image);

        try {           
            mLoader.bind(image, mImages.get(position).getString("url"), null);
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }



        return featured_image_layout;
    }

I am out of ideas – maybe the ImageLoader class isn’t meant for use inside a PagerAdapter?

  • 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-26T12:12:24+00:00Added an answer on May 26, 2026 at 12:12 pm

    I use ImageLoader but I don’t instantiate it like that. I just do this…

    mImageLoader = new ImageLoader();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to use make from cygwin using g++ I was getting Access Denied error
Trying to use an excpetion class which could provide location reference for XML parsing,
I trying to use ImageInfo and Jython to get information from a image on
I'm trying to use jQuery to format code blocks, specifically to add a <pre>
I'm trying to use the Optiflag package in my Ruby code and whenever I
I revieving the following error when trying use mysql_real_escape() function Fatal error: Call to
Trying to use the http://www.dinnermint.org/css/creating-triangles-in-css/ method to create an arrow _________________ \ \ \
Trying to use a guid as a resource id in a rest url but
While trying to use LINQ to SQL I encountered several problems. I have table
I' trying to use a Linq query to find and set the selected value

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.