'execute(Params...)' is deprecated as of API 30: Android 11.0 (R)    

protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btnUp = (Button) findViewById(R.id.btnUp);
        btnDown = (Button) findViewById(R.id.btnDown);

        txtAddress = (EditText) findViewById(R.id.ipAddress);

        btnUp.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // Set the wifiModuleIp and wifiModulePort variables to the Raspberry Pi's IP address and SSH port, respectively
                MainActivity.wifiModuleIp = "192.168.1.100";
                MainActivity.wifiModulePort = 22;

                // Set the CMD variable to the command to execute the Python script
                MainActivity.CMD = "python /path/to/script.py";

                // Execute the command on the Raspberry Pi using SSH
                Soket_AsyncTask task = new Soket_AsyncTask();
                task.execute();
            }
        });
    }