How to know my app is uninstalled from the device…?

前端 未结 2 1762
再見小時候
再見小時候 2020-11-30 09:18

I have an app installed in many devices.

If app is uninstalled from any of the device I need an indication.

How to achieve this.

Thanks in advance..

2条回答
  •  星月不相逢
    2020-11-30 10:19

    My proposal will be the following. You can intercept the intent for your application uninstall. Simply put the following code in your manifest file:

    
    
    
    
    
    
    
        
            
                
    
                
            
            
                
                
                
                
            
    
    
    
        
    
    
    

    After this you can somehow process that your application is going to be deleted (for instance, send you a email), and call the package manager uninstaller.

提交回复
热议问题