Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
This makes alogcat almost unusable. Every time I scroll the window gets flooded 
with GC_EXTERNAL_ALLOC statements. 

Sometimes it'll get stuck and completely flooding the screen after I stop 
touching it. It has literally filled the entire scrollable area with those 
messages a few times.

Samsung Galaxy Tab
Android v2.3.5
aLogcat v2.3

Original comment by [email protected] on 19 Dec 2011 at 12:55

from alogcat.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Preface:  I am in no way associated with aLogCat development.  I just happened 
to stumble upon this issue.

This is not a defect in the logger and a filtering option is provided.  The 
following procedure will remove the garbage collection log entries from your 
aLogCat output:
1) While in aLogCat, press the Menu key on your device and tap Filter
2) Tap the check-box next to "Apply as regular expression?" to enable it
3) In the text box input the following exactly:  ^(?!.*(dalvikvm|GC)).*$
4) Tap Okay and your screen will be updated sans garbage collection spam.

Original comment by [email protected] on 20 Dec 2011 at 6:13

from alogcat.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Android is (very) new to me so I don't know if this is the perfect solution 
but...
Lets give it a try.

I think the background of the listview is the problem.
As explained in the following resource.
http://developer.android.com/resources/articles/listview-backgrounds.html

Removing this code from log.xml enables cacheColorHint optimization.
android:cacheColorHint="#00000000"
By enabling this optimization the garbage collection is drastically reduced.

The default cacheColorHint is black so we need set the cacheColorHint to the 
desired value. I did this by adding this line to the onStart() method of 
logActivity.java.
mLogList.setCacheColorHint(mPrefs.getBackgroundColor().getColor());

Greetz



Original comment by [email protected] on 20 Dec 2011 at 12:00

from alogcat.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
thanks for looking into this folks. i will try out that suggestion and publish 
a new version if all is good.

Original comment by [email protected] on 22 Dec 2011 at 1:53

from alogcat.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
fixed in 2.4.

Original comment by [email protected] on 29 Dec 2011 at 3:47

  • Changed state: Fixed

from alogcat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.