Jak*_*sen 6 lifecycle android android-context
Context.getApplicationContext()在 Android 应用程序中,在应用程序的整个生命周期中保留对返回的应用程序上下文的引用是否安全?
Context ac = context.getApplicationContext();
// keep the ac reference throughout the app lifetime
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1012 次 |
| 最近记录: |