在非繼承自Activity的類別內顯示 getString() === ```java= Resources.getSystem().getString(R.string.XXXXX); ``` ## Ref. [getstring outside of a context or activity](https://stackoverflow.com/questions/4253328/getstring-outside-of-a-context-or-activity) ###### 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