On Thursday, 16 August 2012 03:47:02 UTC+2, MagouyaWare wrote:
>
> Then you would need to talk to the makers of the roms that are doing 
> this... 
>
Yes after even more digging deeper, it is due to a recent CM commit:

http://review.cyanogenmod.com/#/c/18319/1

which is enabled if build type != user. That's the case in CM9 since for 
some reason they only know about, build type = userdebug.

It is stupid to have this patch enabled by default as it affects 
performance for all their users.

 

> As for onCreate() you shouldn't really be doing ANYTHING except calling 
> setContentView() and initializing a few member variables.  Anything else 
> needs to go in a separate thread (perhaps using AsyncTask) to do heavy 
> initialization/work...
>
>
Yes absolutely, using threading or lazy initalization when appropriate. 
onCreate(), onResume(), onStart() have to execute as fast as possible.  The 
only limiting factor here
is is the time taken by loading layouts which cannot be easily reduced or 
reduced at all.

 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to