Skip to content

Commit

Permalink
更改格式,避免语法冲突导致部分内容不显示
Browse files Browse the repository at this point in the history
  • Loading branch information
WonShaw committed Aug 13, 2014
1 parent dc64d1d commit 0301a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basics/intents/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
前两节课主要讲了从你的app启动另外一个app。但是如果你的app可以响应前面发出的action,那么你的app应该做好响应的准备。例如,如果你创建了一个social app,它可以分享messages 或者 photos 给好友,那么最好你的app能够接收ACTION_SEND 的intent,这样当用户在其他app触发分享功能的时候,你的app能够出现在待选对话框。

为了使得其他的app能够启动你的activity,你需要在你的manifest文件的<activity> 标签下添加<intent-filter> 的属性。
为了使得其他的app能够启动你的activity,你需要在你的manifest文件的`<activity>`标签下添加`<intent-filter>`的属性。

当你的app被安装到设备上时,系统可以识别你的intent filter并把这些信息记录下来。当其他app通过执行 startActivity() 或者 startActivityForResult()方法,并使用implicit intent时,系统可以自动查找出那些可以响应这个intent的activity。

Expand Down

0 comments on commit 0301a7a

Please sign in to comment.