android - Why would you want to configure intent filters from code? -
i'm going through wi-fi direct tutorials android , had quick question how they're using intentfilter
in section "set broadcast receiver , peer-to-peer manager".
there, manually configure instance of intentfilter
activity , instantiate in oncreate()
. then, in onresume()
, intentfilter
passed in registerreceiver()
.
what's specific reason why intentfilter
configured here , reason why these intents couldn't set in androidmanifest.xml
?
Comments
Post a Comment