简体   繁体   中英

How to use system string in android

I want to use the system string "choose an app",and I find the id is "chooserview_choose_application".

I use it by getResources().getString(android.R.string.activitychooserview_choose_application but show error! I can only use such as "cancle","copy","no","ok".....! Is there anyway to solve it?

Most system resources are private and subject to change without warning. This includes the String resource you referenced.

Other resources (such as android.R.string.ok ) are public and provided by the SDK for your to use.

All the strings that are available in the SDK are listed here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM