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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -