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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:06:17+00:00 2026-06-17T08:06:17+00:00

i m using all the classes for geting image through Url. ImageView imV= ((ImageView)

  • 0

i m using all the classes for geting image through Url.

        ImageView imV=  ((ImageView) view.findViewById(R.id.badge));
        // Image url
        String image_url = "http://maps.gstatic.com/mapfiles/place_api/icons/cafe-71.png";
        final int stub_id = R.drawable.ic_action_search;
        // ImageLoader class instance
        ImageLoader imgLoader = new ImageLoader(getApplicationContext());

        // whenever you want to load an image from url
        // call DisplayImage function
        // url - image url to load
        // loader - loader image, will be displayed before getting image
        // image - ImageView
        imgLoader.DisplayImage(image_url,stub_id ,imV);

but it is displaying the default image,rather than Url downloaded image.

https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/GoogleMap.InfoWindowAdapter

i m using infowindowAdapter class of goolge and its says that i cn’t change the image when once data & image is loaded in the window,thts why its displaying first default image….. and not changing later

so is there any other way?
thanks in advance

  • 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-17T08:06:18+00:00Added an answer on June 17, 2026 at 8:06 am

    I’m having the same problem.
    I’ve solved it with a asyncTask.

    Something like this

    private Drawable _infoImageDrawable;
    public class MyMapActivity extends MenuActivity
    {
        .....code code code....
    
        protected void handleMarkerClicked(final Marker marker, final String url) {
            new AsyncTask<Void, Void, Void>()
            {   
                @Override
                protected void onPreExecute() 
                {
                    super.onPreExecute();
                    _infoImageDrawable = null;
                }
    
                @Override
                protected Void doInBackground(Void... params) 
                {
                    InputStream is;
                    try {
                         is = (InputStream) new URL(url).getContent();
                         _infoImageDrawable = Drawable.createFromStream(is, "");
                    } catch (MalformedURLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                    } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                    }
                    return null;                
                }
    
                @Override
                protected void onPostExecute(Void result) 
                {
                super.onPostExecute(result);
                marker.showInfoWindow();
                }
            }.execute();
        }
    }
    

    Then I just set the drawable in the InfoWindowAdapter to null first(remove old image) and to _imageInfoDrawable second.
    It works – but i would like a better solution.

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

Sidebar

Related Questions

How can I list all the classes in my current project(assembly?) using reflection? thanks.
I'm using : PathMatchingResourcePatternResolver rr = new ...; rr.getResources(classpath*:**/*.class) to get all the classes
In my program, All of my classes are using singleton pattern, except the one
We've generated some (well a lot) of classes using HyperJAXB. All of the classes
Using reflection on Java classes to access all field, methods, and so on: Is
Is there any way to monitor all requested URLs using the .NET framework classes?
The following code (without showing it all) is my first attempt at using classes.
I am using ASIHTTPRequest classes from uploading a image on sever using cocoa with
I'm compiling a Shared library using Android NDK r6b. All classes are C++. I
I'm using all of them to print the names of assigned IANA values in

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.