Brewing Apps

Brewing Apps Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Brewing Apps, Software Company, Hong Kong.

04/10/2019

覺得隻app唔夠安穩想砍掉重練?首先要先認清楚問題核心所在。否則,砍幾多次都無補於事

25/06/2019

初接觸 Android 的朋友可能一見到個 Activity 或 Fragment 有一堆 on-乜乜嘅 function,會好驚訝,點解又 Start 又 Stop、又 Pause 又 Resume 咁(而 iOS 就 WillLoad、DidLoad、WillAppear、DidAppear、WillDisappear、DidDisappear),其實呢一堆 function 係說明咗個 Activity、Fragment、ViewController 的 life cycle,尤其是有些情況必需要清晰知道「呢舊嘢死得未?死晒未?仲會唔會捲土重來?」所以每一個名的用字係好重要。

以 Android 的 Activity 為例,onPause 之後會去咗 onStop,但 onStop 又可以返去 onRestart,然後 onStart 再 onResume。所以,就算去到 onStop 都唔好掉以輕心,以為唔會再 onResume。

更鬼馬係原來系統 call 咗 onPause 可以唔 call onStop,然後唔知邊年邊月又可以直接去 onResume,一日冇去到 onDestroy 都唔能夠安心。

不過系統成日唔 call onDestroy,系統話 stop 咗咪 stop 咗咯,咁樣。


#每個用字係有意思的

Address

Hong Kong

Website

Alerts

Be the first to know and let us send you an email when Brewing Apps posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share