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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -