# onActivityResult()與onResume順序
Activity 的life cycle對Android開發者來說是個基本常識,而當onActivityResult()狀態發生時,又會是個怎樣的順序呢?
https://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)
You will receive this call immediately before on Resume() when your activity is restarting.
由上可知,onActivityResult()發生在於onResume之前,
因此onAcivityResult()中取得的結果,可以透過onResume()來更新你的UI。
沒有留言:
張貼留言