Back to project page Android-SMS-Interceptor.
The source code is released under:
MIT License
If you think the Android project Android-SMS-Interceptor listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.interceptor; /*www. java 2s. c om*/ import android.os.Bundle; import android.widget.Toast; import android.app.Activity; import android.content.pm.PackageManager; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); PackageManager p = getPackageManager(); p.setComponentEnabledSetting(getComponentName(), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); } }