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

  • Home
  • SEARCH
  • 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 9125281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:46:08+00:00 2026-06-17T06:46:08+00:00

I have an application just like Pulse and its in beta stage https://play.google.com/store/apps/details?id=com.braindigit.nepal.khabar I

  • 0

I have an application just like Pulse and its in beta stage
https://play.google.com/store/apps/details?id=com.braindigit.nepal.khabar

I have a main layout which holds a LinearLayout named NewsCategoryHolder and on this layout I dynamically add and remove another layout name CategoryView .This CategoryView contains HorizontalListView and other views.
Further for navigation I have implemented ActionbarSherlock Tab and on each click of the tab NewsCategoryHolder will remove all its views and then add CategoryView.
Each CategoryView has its own AsyncTask to either load data from server or from database.
And on each addition and removal of CategoryView I have removed all its views,assigned its adapters to null and even the Context it holds to null. But as I navigate from Tab to Tab,the memory of the application increases. I feel that it is the case of some memory leaking going on my application.
I have gone all the tutorials ,links and videos about MAT and other analyzers,but I couldn’t pin point the exact portion from which the app is consuming memory or the point on which GC couldn’t collect the object refrences.

I just want to find the location where memory consumption is high,but couldn’t be able to do that.I have attached *.hprof http://news.braindigit.com/saved/android3201806337409456011.hprof file and just want some help on its analysis and my application package name is com.braindigit.nepal.khabar

  • 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-17T06:46:09+00:00Added an answer on June 17, 2026 at 6:46 am

    I found the main reason why memory consumption is high.Rather than from the MAT ,after removing various views from layout and various statements,I found that I am using font from the asset folder which was the main culprit.

    headingText.setTypeface(Typeface.createFromAsset(context.getAssets(), DataHolder.FONT_PATH));
    

    So by doing this maybe Context is being referenced or TypeFace is being referenced and was never garbage collected.But removing this line of code fixed all the memory leak issue on my app.

    Further this issue can be solved using the technique described here
    Typeface memory leak

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

Sidebar

Related Questions

I currently have a UINavigationController based application that works just fine. I'd like to
I have a simple MVC 4 (Beta) Application and just observed something that I
I have to give a delete thumbnail animation in my ipad application just like
I have a C++ application with GUI that runs (on PC 1) just like
I have an application that I just would like to use in portrait mode,
I have an Android application with some ImageButtons, just like icons. I would like
Just like the title says... I have a Winforms application with a databound dropdown.
I have created application where i just need to access data form assets folder.
I have web application written in java using Eclipse. It has just one servlet
In my application I have groups which are essentially just tags that can be

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.