getting a result from startActivityForResult
<p>i've a code that will get a image from the gallery and then set a  gridSize with it. </p>

<p>the main code that will send android to the SizeSelection class.</p>

<p>PuzzleAcitivity:</p>

<pre><code>if( resultCode == RESULT_OK) {
         Intent gridSizeIntent = new Intent();              
         gridSizeIntent.setClass(this, SizeSelection.class);
         startActivityForResult(gridSizeIntent, GRIDSIZE_VALUE_SELECT);
         createGameBoard(SizeSelection.getGridSize(this)); 
         }
</code></pre>

<p>but this is where the trouble kicks in: SizeSelection, when I hit the buttons that should activate and set a gridSize nothing happends. I think the problem is in getting the data from the SizeSelection to the main PuzzleActivity class.</p>

<p>sizeSelection:</p>

<pre><code>protected static short getGridSize(Context content) {
        if ( mIbtn3x3 == view) {
             short gridSize = 3;
            return gridSize;
        }else if (mIbtn4x4 == view ) {
            short gridSize = 4;
            return gridSize;
        }else if (mIbtn5x5 == view ) {
            short gridSize = 5;
            return gridSize ;
        } 
            return gridSize;
        }
</code></pre>

<p>how am I supposed to finish the getGridSize method? thanks in advance</p>
