Search code examples
androidsamsung-galaxy

Is there a way to programmatically launch samsung's device maintenance from my app?


In lieu of a cache wipe functionality (since normal apps can't get access to 3rd party app cache directories) I want to launch the device maintenance storage screen built into Samsung phones. What is the package name i need to put for the intent?


Solution

  • check if manufactorer is samsung:

    if (Build.MANUFACTURER.equals("samsung"))
    

    then

    startActivity(new Intent(Intent.ACTION_VIEW).setPackage("com.samsung.android.lool"));