I want to know by using a service when a particular android app is launched. To perform user defined task when any desired app is getting launched, I need that particular moment to be fetched and get notified using a service. Kindly help me if this could be achievable. Thanks in advance.
            Asked
            
        
        
            Active
            
        
            Viewed 44 times
        
    1 Answers
0
            
            
        Use UsageStatsService through reflection-http://androidxref.com/4.4.4_r1/xref/frameworks/base/services/java/com/android/server/am/UsageStatsService.java
refer this link if you want to know how to use reflection: What is reflection and why is it useful?
 
    
    
        Community
        
- 1
- 1
 
    
    
        rupesh jain
        
- 3,410
- 1
- 14
- 22
