Home  >  Article  >  WeChat Applet  >  Share a code example for Android to automatically grab red envelopes on WeChat

Share a code example for Android to automatically grab red envelopes on WeChat

Y2J
Y2JOriginal
2017-04-28 10:56:026143browse

Simply implement the service of automatically grabbing red envelopes on WeChat. The principle is to find the corresponding View based on the keywords and then automatically click on it. Mainly using the auxiliary service AccessibilityService, it can basically meet the function of automatically grabbing red envelopes, but some logic needs to be optimized. For example, after opening a red envelope, you must manually click the return button to automatically grab the next red envelope.

AndroidManifest.xml
   


 
    
        
            
                
 
                
            
        
 
        
            
                
            
            
        
    
 

   
envelope_service_config.xml
   


   
activity_main.xml
   

 
    

The above is the detailed content of Share a code example for Android to automatically grab red envelopes on WeChat. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn