Java tutorial
//package com.java2s; import android.content.ComponentName; import android.content.pm.PackageManager; public class Main { public static void disableComponent(PackageManager pm, ComponentName component) { pm.setComponentEnabledSetting(component, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); } }