当前位置:编程学习 > wap >>

求翻译: Intent and Intent filters

Filters and security
An intent filter cannot be relied on for security. While it opens a component to receiving only certain kinds of implicit intents, it does nothing to prevent explicit intents from targeting the component. Even though a filter restricts the intents a component will be asked to handle to certain actions and data sources, someone could always put together an explicit intent with a different action and data source, and name the component as the target.

在 android的官方文档上发现一段话, 不知道怎样去翻译理解, 
尤其是 :it does nothing to prevent explicit intents from targeting the component.  --------------------编程问答-------------------- intent ,官方译为 意图
intent-filter ,可知为 意图过滤器

intent ,连接组件的桥梁,即一个组件启动另一个组件需要intent,
如Activity 启动activity : intent.setClass(a.this,b.class);startActivity(intent);
Activity启动service: intent.setClass(a.this,b.class);startService(intent);

详细内容:
http://hi.baidu.com/lizhengjun2010/blog/item/2f458c05393758ce267fb557.html --------------------编程问答-------------------- 这段话的主要意思就是说用the intent filter是不安全的
it does nothing to prevent explicit intents from targeting the component意思大概是:
the intent filter根本不能阻止一些显式的intent到达组件上
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,