Closed GoogleCodeExporter closed 8 years ago
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 E.Joseph...@gmail.com
on 19 Dec 2011 at 12:55
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 Randen.S...@gmail.com
on 20 Dec 2011 at 6:13
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 tielensj...@gmail.com
on 20 Dec 2011 at 12:00
thanks for looking into this folks. i will try out that suggestion and publish
a new version if all is good.
Original comment by jeffrey.blattman@gmail.com
on 22 Dec 2011 at 1:53
fixed in 2.4.
Original comment by jeffrey.blattman@gmail.com
on 29 Dec 2011 at 3:47
Original issue reported on code.google.com by
tielensj...@gmail.com
on 22 Nov 2011 at 10:15Attachments: