android development with the Notes

. 1, Fragment Activity jump to the modified data, after modified return (return key) from Fragment Activity, require refreshing data interface Fragment

Solution:

After Fragment registered a broadcast monitor when Activity returned in Activity in the onBackPress when listening to by pressing the return key when you send a broadcast to Fragment, Fragment receive broadcast, perform the interface update function

 2, with webview time, webview performance native Android relatively poor, to improve performance, if only to visit their website, there is an optimal way is to intercept when accessing web resources, check local resources are file if there directly to the cost of replacement, the relevant code in the future

Guess you like

Origin www.cnblogs.com/pxjbk/p/11419940.html