全域 Context === 有時建立 singleton 物件時,會需要 context 物件,此時就能使用此方法 ## Ref. [【 Android 中文開放式課程 】關於 Application 三兩事 ](https://tw-hkt.blogspot.com/2017/11/android-application.html) [android全域性獲取Context物件(在靜態函式中實現toast)](https://www.itread01.com/content/1549732508.html) ###### tags: `實作相關`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up