org.ros.android
Class RosActivity
java.lang.Object
Activity
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RosActivity
protected RosActivity(java.lang.String notificationTicker,
java.lang.String notificationTitle)
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 NodeMain
s
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)