onpause和onstop啥区别
onpause和onstop啥区别?一个说是隐藏,一个说是不可见?
onpause和onstop啥区别?一个说是隐藏,一个说是不可见?
2015-05-05
Generally, you should not use onPause() to store user changes (such as personal information entered into a form) to permanent storage. The only time you should persist user changes to permanent storage withinonPause() is when you're certain users expect the changes to be auto-saved (such as when drafting an email). However, you should avoid performing CPU-intensive work during onPause(), such as writing to a database, because it can slow the visible transition to the next activity (you should instead perform heavy-load shutdown operations during onStop()).
举报