全文预览

android外文文献翻译

上传者:qnrdwb |  格式:doc  |  页数:28 |  大小:110KB

文档介绍
orcreateddynamicallyincode(as BroadcastReceiver objects)andregisteredwiththesystembycalling registerReceiver().ponentcapabilities?Asdiscussedabove,in ponents,youcanusean Intent tostartactivities,services,andbroadcastreceivers.ponent(ponentclassname)intheintent.However,therealpowerofintentsliesintheconceptofintentactions.Withintentactions,yousimplydescribethetypeofactionyouwanttoperform(andoptionally,thedatauponwhichyou’dliketoperformtheaction)ponentonthedevicethatcanperformtheactionandstartit.ponentsthatcanperformtheactiondescribedbytheintent,ouse.?paringtheintentreceivedtothe intentfilters providedinthemanifestfileofotherapplicationsonthedevice.?ponentinyourapplication'smanifest,ponentsoitcanrespondtointentsfromotherapplications.ponentbyaddingan <intent-filter> ponent'sdeclarationelement.

收藏

分享

举报
下载此文档