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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:46:00+00:00 2026-05-13T17:46:00+00:00

Iam trying to make my Activity List more effective. I have an Activity List

  • 0

Iam trying to make my Activity List more effective.
I have an Activity List in my app, on every call its going to the database collecting some information and show it on the screen(as List).

so basiclly everytime you finish and re-call that list, it’s calling onCreate.. again and again..
my problem here is with the allocation i am trying to reduce!

for example i have an Arraylist which is being allocated every time on the onCreate Method of my activity list, and many more allocations which i do onCreate.

i find it slowing my program very much, my program is very un-stable, and i try to reach to some performances… any idea how can i avoid this onCreate everytime i re-call my Activity List? mybe another technics to reduce re-allocations?
Thanks,
Idan.

  • 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-13T17:46:00+00:00Added an answer on May 13, 2026 at 5:46 pm

    If you’re fetching data from SQLite to put in a ListView, return the data as a Cursor and create a custom CursorAdapter to work with the list. It’ll be more efficient than returning an ArrayList of objects (I assume that’s what you’re doing).

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

Sidebar

Related Questions

Hi iam trying to make an update trigger in my database. But i get
Iam trying to make a connection between my database on the MYSQL(iam using the
I am trying to make a phone call on a list item click. Here
I am trying to make an empty custom activity so that I can have
I am trying to make a group activity with the radio widget. My problem
I am trying to make a PIN entry activity, but one little thing is
I am trying to make a simple program that could open a new activity
Hi iam trying to make an Wpf TextBlock to blink. I want like when
I am trying to make a call to a Parent class method from a
I am trying to make an android app and I can't seem to find

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.