I can't use getSystemService(String) from the Context library I want to use it here, but it's missing.
            Asked
            
        
        
            Active
            
        
            Viewed 97 times
        
    -2
            
            
         
    
    
        double-beep
        
- 5,031
- 17
- 33
- 41
 
    
    
        Smecik48
        
- 1
- 
                    1Does this answer help? https://stackoverflow.com/q/6963550/2111778 – xjcl Jul 01 '21 at 13:01
1 Answers
0
            
            
        Try to access with context object if you are accessing this method in non activity class.
  context.getSystemService(Context.POWER_SERVICE);
 
    
    
        Dharmender Manral
        
- 1,504
- 1
- 6
- 7