Android: Download Manager

后端 未结 3 566
我在风中等你
我在风中等你 2021-01-14 21:48

I want to implement a solution where I want to catch the android.intent.action.DOWNLOAD_COMPLETED intents from the Android Market App i.e after the download of

3条回答
  •  轮回少年
    2021-01-14 22:16

    You've got everything right except the name of the action in the intent filter. Note the DOWNLOAD_COMPLETE instead of DOWNLOAD_COMPLETED

        
            
                
             
                 
    

    This worked for me. You do not need to register the receiver in code, this will listen even when your app isn't running.

提交回复
热议问题