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

I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
Im trying use a Java annotation in a Groovy class but have trouble to
I am trying use a Java Uploader in a ROR app (for its ease
Trying to use an excpetion class which could provide location reference for XML parsing,
Trying to use this code to connect the AD PrincipalContext context = new PrincipalContext(ContextType.Domain,
Trying to use a wildcard in C# to grab information from a webpage source,
I am trying to use some libraries from the jre but i cant seem
I am trying use std::copy to copy from two different iterator. But during course
I'm trying to display a custom progressdialog while loading RSS feed from an HTTP
i'm trying use webview to load a image from sdcard i use this path

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.