当在Activity中使用时,可以直接使用this.getSharedPreferences(),并且this可以省略。反之,则需要传入一个Context对象获取上下文,即context. getSharedPreferences()。( )
√
举一反三
- 使用Context提供的openFileOutput方法可以获取FileInputStream对象。
- According to Numan, context can be classified into . A: linguistic context and co-text. B: nonlinguistic context and extra-linguistic context. C: situational context and cultural context D: linguistic context and nonlinguistic context.
- 使用Context的()方法可以获取Android系统提供的服务。
- In a narrow sense, context refers to the...n as ______ context.
- Linguistic context can be subdivided into lexical context and ______ context. A: words B: clauses C: grammatical D: sentences
内容
- 0
()是页面上下文对象。 A: Server B: Session C: Context D: Trace
- 1
使用Glide图片加载库时,使用方法Glide.with(Context context).load(String url).into(ImageView imageView)可以访问网络图片。( )
- 2
名词解释:寄存器上下文( register context)
- 3
Which of the following is NOT one of the types of context A: Linguistic context. B: B. Non-linguistic context. C: Extra-linguistic context. D: Intra-linguistic context.
- 4
Activity不是Context的子类。( )