Can we open other app through this code by executing command given through the Edittext view. If yes then how it can be done? :     package com.example.honey.shell;

    import android.support.v7.app.AppCompatActivity;  
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.TextView;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;

    public class MainActivity extends AppCompatActivity {
     TextView op;
     EditText ip;
     Button exec;
    @Override
     protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      op = (TextView) findViewById(R.id.textView);
      ip = (EditText) findViewById(R.id.editText);
      exec = (Button) findViewById(R.id.button);
     }

     public void execute(View view) {
      String input = ip.getText().toString();
      StringBuffer output = new StringBuffer();
      Process p;
      try {
       p = Runtime.getRuntime().exec(input);
       p.waitFor();
       BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
       String line = "";
       while ((line = reader.readLine()) != null) {
        output.append(line + "\n");
       }
      } catch (Exception e) {}
      op.setText(output.toString());
     }
 }

Actually i wish to open some other application from my app by executing the command but it's not working,as I tried commands such as cd but it didn't work only the ls command is working in it...