android.TICO
Class TICO

java.lang.Object
  extended by Activity
      extended by android.TICO.TICO

public class TICO
extends Activity

The class that defines the main activity of Tico Interpreter.


Field Summary
static Resources res
           
 
Constructor Summary
TICO()
           
 
Method Summary
 void MostrarPanel(RelativeLayout layP, NodeList boards, accumulated_cells accumulated, int i)
          Shows the correct board on the screen
 void onActivityResult(int requestCode, int resultCode, Intent data)
          Redefine the behavior of the onActivityResult for the results of activities fileDialog, SetupScreen and videoPlayer.
 void onConfigurationChanged(Configuration newConfig)
          Change the orientation of interpreter when the orientation of the device changes if it's necessary.
 void onCreate(Bundle savedInstanceState)
          onCreate behavior of the main activity of the interpreter.
 boolean onCreateOptionsMenu(Menu menu)
          Defines the options menu shown by clicking menu button
 void onDestroy()
          Redefines the onDestroy behavior of the main activity Removes the temp directory
 boolean onKeyDown(int keyCode, KeyEvent event)
          Redefine the behavior of the back button for back in the boards
 boolean onOptionsItemSelected(MenuItem item)
          Defines the behavior when selected a MenuItem
 void onSaveInstanceState(Bundle icicle)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

res

public static Resources res
Constructor Detail

TICO

public TICO()
Method Detail

onSaveInstanceState

public void onSaveInstanceState(Bundle icicle)

onConfigurationChanged

public void onConfigurationChanged(Configuration newConfig)
Change the orientation of interpreter when the orientation of the device changes if it's necessary.


onKeyDown

public boolean onKeyDown(int keyCode,
                         KeyEvent event)
Redefine the behavior of the back button for back in the boards


onCreate

public void onCreate(Bundle savedInstanceState)
onCreate behavior of the main activity of the interpreter. It calls to the activity fileDialog for select the .tcoa file.


onActivityResult

public void onActivityResult(int requestCode,
                             int resultCode,
                             Intent data)
Redefine the behavior of the onActivityResult for the results of activities fileDialog, SetupScreen and videoPlayer.

Parameters:
requestCode - The integer request code originally supplied to startActivityForResult(), allowing you to identify who this result came from.
resultCode - The integer result code returned by the child activity through its setResult().
data - An Intent, which can return result data to the caller (various data can be attached to Intent "extras").

MostrarPanel

public void MostrarPanel(RelativeLayout layP,
                         NodeList boards,
                         accumulated_cells accumulated,
                         int i)
                  throws OutOfMemoryError,
                         NullPointerException,
                         Exception
Shows the correct board on the screen

Parameters:
layP - The RelativeLayout where we load the board.
boards - The NodeList with all the boards definition.
accumulated - The accumulated_cells where we accumulate the sentence.
i - The int that identificates the board to show.
Throws:
OutOfMemoryError
NullPointerException
Exception

onCreateOptionsMenu

public boolean onCreateOptionsMenu(Menu menu)
Defines the options menu shown by clicking menu button


onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)
Defines the behavior when selected a MenuItem

Parameters:
item - The selected MenuItem

onDestroy

public void onDestroy()
Redefines the onDestroy behavior of the main activity Removes the temp directory