Question: I am trying to resize the buttons in a button array I made, but I don't know how

Here's my code

```
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.game);
    final TableLayout container = (TableLayout) findViewById(R.id.tableLayout5);

    Button btn[][] = new Button[10][10];

    for(int i = 0; i<10; i++){
        for(int j = 0; j<10; j++){
             btn [i][j] = new Button(this);

             container.addView(btn[i][j],i);

        }

    }

}

```

Answer: 
You can use the `Process` class. It lets you specify some options about how you want to execute it, and also provides a method which waits the process to exit before executing the next statement.

look at this link (the msdn reference):
<http://msdn.microsoft.com/fr-fr/library/system.diagnostics.process.aspx>

basically what you can do is:

```
 Process p;
 // some code to initialize it, like p = startProcessWithoutOutput(path, args, true);

 p.WaitForExit();

```

an example of initializing the process (that's just some code I used once somewhere):

```
    private Process startProcessWithOutput(string command, string args, bool showWindow)
    {
        Process p = new Process();
        p.StartInfo = new ProcessStartInfo(command, args);
        p.StartInfo.RedirectStandardOutput = false;
        p.StartInfo.RedirectStandardError = true;
        p.StartInfo.UseShellExecute = false;
        p.StartInfo.CreateNoWindow = !showWindow;
        p.ErrorDataReceived += (s, a) => addLogLine(a.Data);
        p.Start();
        p.BeginErrorReadLine();

        return p;
    }

```

as you can see in this code you can also do some output redirection, error redirection.... If you dig in the class I think you'll find quite quickly what you need.
```
var p = System.Diagnostics.Process.Start("notepad");
p.WaitForExit();

```