Last active
          March 27, 2018 10:28 
        
      - 
      
 - 
        
Save sidward35/6918809e8026a5097f84c7e4c7a4de81 to your computer and use it in GitHub Desktop.  
    Android programmatically restart app
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Intent i = getBaseContext().getPackageManager() | |
| .getLaunchIntentForPackage( getBaseContext().getPackageName() ); | |
| i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | |
| startActivity(i); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment