service - Android Updating notification text causes memory usage -


so have service foreground notification launched when user navigates away activity.

i update notification consistently every second string has time, every update causes memory usage go @ least 0.01 mb. here's code i'm using:

mnotibuilder.setcontenttext(mbuilder.tostring()); mnotimanager.notify(notificationid, mnotibuilder.build()); 

i've tested string builder i'm using not causing it.

i don't know why happening, should worried @ all? i'm stickler when comes resource usage i'm trying right.

well wouldn't worry much. each time build new notification, take memory. android doesn't run garbage collection cycle long have enough memory, meaning old notification stay around while.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -