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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:05:52+00:00 2026-05-30T04:05:52+00:00

My final year project requires me to develop a mobile application which fetches a

  • 0

My final year project requires me to develop a mobile application which fetches a number of Json values from a server. This is my first experience in android development but sure learned something’s and enjoyed the experience.

I have managed to develop the following.

1-a json parser class which fetches the value.

2-a class which displays these values.

3-a database where I store the json response.

However I’m one step away from completing my project, I cannot display the response string image address as real images (shame on me).
I need to do the following.

1- Parse the string path of the image and display the response as image.

I have spent most of my time trying to find the solution on the web, stack overflow. But no luck so far.
I need to do something like this in order to display these images together with the text descriptions.

I have now reached the cross roads and my knowledge has been tested.Is what i’m trying to do here posible?.

Who can show me the way? ,to this outstanding platform.

  • 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-30T04:05:53+00:00Added an answer on May 30, 2026 at 4:05 am

    if you have the image url as a string, you can load and save the image using something like this:

    try {   
        Bitmap bitmap = null;
        File f = new File(filename);
        InputStream inputStream = new URL(url).openStream();
        OutputStream outputStream = new FileOutputStream(f);
    
        int readlen;
        byte[] buf = new byte[1024];
        while ((readlen = inputStream.read(buf)) > 0)
            outputStream.write(buf, 0, readlen);
    
        outputStream.close();
        inputStream.close();
        bitmap = BitmapFactory.decodeFile(filename);
    
        return bitmap;
    } catch (Exception e) {
        return null;
    }
    

    For saving, make sure you have appropriate permissions if you’re going to save to sdcard.

    if you just want to load the image (without saving):

        Bitmap bm = null;
        try {
            URL aURL = new URL(url);
            URLConnection conn = aURL.openConnection();
            conn.connect();
            InputStream is = conn.getInputStream();
            BufferedInputStream bis = new BufferedInputStream(is);
            bm = BitmapFactory.decodeStream(bis);
            bis.close();
            is.close();
       } catch (IOException e) {
           Log.e(TAG, "Error getting bitmap", e);
       }
       return bm;
    

    Just make sure you fetch the image in a separate thread or using AsyncTask or else you’ll get ANRs!

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

Sidebar

Related Questions

As part of my Final Year Project I've developed a desktop application, which fits
For my final year project i'l be taking the photographs from the mobile phone
Currently i'm working on my final year project. In a webpage which loads data
I am currently writing a genre classification application as my final year project in
As part of my final year project, I'm designing an Android application that needs
I have a concept of Virtual Mart for my Final year Project. This concept
My final year project topic is Web-services using SOA. In this we were planning
I am trying to develop a music-focused search engine for my final year project.I
I have 2 weeks to finish my final year project.I need a GUI IDE
As a part of my final year university project I am designing a social

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.