title: How to uninstall android system app programmatically?
body: <p>I can get a list of installed apps (both user and system apps). I am also able to uninstall user apps, however, not able to uninstall system apps.</p>
  
  <p>Is there any way to uninstall system app?
  If the phone is already rooted, will the following code work?</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_DELETE);
  intent.setData(Uri.parse("package:"+appPackageName.getText().toString()));
                          context.startActivity(intent); 
  </code></pre>