org.ros.android
Class RosActivity

java.lang.Object
  extended by Activity
      extended by org.ros.android.RosActivity
Direct Known Subclasses:
AcmDeviceActivity, MainActivity, MainActivity, MainActivity, MainActivity

public abstract class RosActivity
extends Activity


Constructor Summary
protected RosActivity(java.lang.String notificationTicker, java.lang.String notificationTitle)
           
 
Method Summary
 java.net.URI getMasterUri()
           
protected abstract  void init(org.ros.node.NodeMainExecutor nodeMainExecutor)
          This method is called in a background thread once this Activity has been initialized with a master URI via the MasterChooser and a NodeMainExecutorService has started.
protected  void onActivityResult(int requestCode, int resultCode, Intent data)
           
protected  void onDestroy()
           
protected  void onStart()
           
 void startActivityForResult(Intent intent, int requestCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RosActivity

protected RosActivity(java.lang.String notificationTicker,
                      java.lang.String notificationTitle)
Method Detail

onStart

protected void onStart()

onDestroy

protected void onDestroy()

init

protected abstract void init(org.ros.node.NodeMainExecutor nodeMainExecutor)
This method is called in a background thread once this Activity has been initialized with a master URI via the MasterChooser and a NodeMainExecutorService has started. Your NodeMains should be started here using the provided NodeMainExecutor.

Parameters:
nodeMainExecutor - the NodeMainExecutor created for this Activity

getMasterUri

public java.net.URI getMasterUri()

startActivityForResult

public void startActivityForResult(Intent intent,
                                   int requestCode)

onActivityResult

protected void onActivityResult(int requestCode,
                                int resultCode,
                                Intent data)