Hello. 
I started an activity with Activity starter. 
I want this activity auto stop and return to my app without opérator tap screen home button or back button.
for exemple i use Andro tools [FREE] AndroidTools - Extension (1.3)  to detect when device is disconnected. and then i want to go back to my app...
i there a way to do it ?
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              
Which event are you talking about? Please clarify.
             
            
               
               
              1 Like 
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
                 
              
                  
                    January 29, 2021,  8:51pm
                   
                   
              3 
               
             
            
              
that's not possible 
after using the actiity starter the other app is active and there is no possiblity for your app to get control again programmatically
Taifun
 
Trying to push the limits!         Snippets  ,         Tutorials   and        Extensions   from        Pura Vida Apps  by    Taifun.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              Background work might work with extension I think atom developer developed background task extension so it must be possible with extension
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              
here i close my app but i would like to close the app  which have been start with activity starter too
but some app can stop other apps or make them go to background !
where is this extension ? i didn't found it !
             
            
               
               
              1 Like 
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
              
                  
                    February 5, 2021,  5:54pm
                   
                   
              6 
               
             
            
              
what about doing a search in the extensions directory next time?
BackgroundTasks Extension  by Atom_Developer (25 USD)
Taifun
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              oup's sorry ! thank's taiffun...   
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
              
                  
                    February 5, 2021,  5:56pm
                   
                   
              8 
               
             
            
              
which one? any link? probably some system apps? 
don't hesitate to try something... keep us updated about your progress...
Taifun
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              
 Taifun:
 
which one?
 
 
Macrodroid can do this for exemple.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
                 
              
                  
                    February 5, 2021,  8:20pm
                   
                   
              12 
               
             
            
              for rooted devices you could follow one of these solutions
together with the
  
  
    Hello friends, 
with this extension we are going to use some LINUX commands. 
com.KIO4_Terminal.aix  
With this block we can copy files from the assets to SdCard. This block only works with the compiled app (Build). It needs AskForPermission = WRITE_EXTERNAL_STORAGE 
[extension_terminal3] 
[shell_permiss] 
oooooooooooooooOOOOOOOOOOOOOoooooooooooooo 
With this block we can copy files from the assets to the internal cache directory of the same application. We will get the address of the accessi…
   
 
Taifun
 
Trying to push the limits!         Snippets  ,         Tutorials   and        Extensions   from        Pura Vida Apps  by    Taifun.
             
            
               
               
              1 Like 
            
            
                 
                 
              
                
           
          
            
            
              ok, i will have a look on it. 
thanks