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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:33:45+00:00 2026-06-15T20:33:45+00:00

I have in a JSON folder on a server about 2000 products. Each one

  • 0

I have in a JSON folder on a server about 2000 products. Each one has price,available_sizes and many more entries. For this reason I decide to make an on the fly binding, by using the RESTTemplate class of the Spring for Android framework. This is working perfectly fine. However, I detect with with MAT(Memory Analyzer Tool) that maybe this approach is too heavy for a mobile because detects possible memory leak.

Here there are the Pojo attributes:

@JsonProperty
private String brand;
@JsonProperty
private String colours;
@JsonProperty
private String img;
@JsonProperty
private Float GBP;
@JsonProperty
private String name;
@JsonProperty
private String prodnum;
@JsonProperty
private String sizes;

However, I don’t want to use the

   System.gc();

and the other related methods because I read that the reduce the performance. Can anyone help and propose me something that could be memory efficient?

  • 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-15T20:33:46+00:00Added an answer on June 15, 2026 at 8:33 pm

    You should only load as many item you can display in the device.

    Displaying all item is too much, because user may not read them all.

    You display 10 ( for example) and upon scroll to the bottom, you display another 10.

    To implement something like this, you can use Pagination in List View.

    Refer to http://p-xr.com/android-tutorial-dynamicaly-load-more-items-to-the-listview-never-ending-list/

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

Sidebar

Related Questions

I have JSON string that has nested objects with dynamic names that vary each
I have folder structure and I would like to create JSON objects based on
I have 41 JSON objects, each with the same scheme. These objects are fairly
I have a json stored in my app documents folder and I need to
I have a JSON resource resource.json in my /MyApp/Resources/ folder. I want this resource
I have a GWT application and I load a .json file on the server
I have the following JSON structure: {projekt:{ id:18, projectname:test, dokumente:{ id:1190, name:rootfolder, information:{ folder:[
I have JSON like this: { something: http://something.com } and HTML like this: <a
I have JSON text that looks like this: { ok: true, totalPages: 256, arReports:
i have json data like this {GetStudentDetails: {TotalCount:5, RootResults:[ {city:West Chester,country:USA,state:PA ,student_id:100}, {city:Philly,country:USA,state:PA,student_id:101}, {city:Buffalo,country:USA,state:NY,student_id:102},

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.