org.ros.android.android_acm_serial
Class AcmDeviceActivity

java.lang.Object
  extended by Activity
      extended by org.ros.android.RosActivity
          extended by org.ros.android.android_acm_serial.AcmDeviceActivity
All Implemented Interfaces:
AcmDevicePermissionCallback
Direct Known Subclasses:
MainActivity

public abstract class AcmDeviceActivity
extends RosActivity
implements AcmDevicePermissionCallback


Constructor Summary
protected AcmDeviceActivity(java.lang.String notificationTicker, java.lang.String notificationTitle)
           
 
Method Summary
protected  java.util.Collection<UsbDevice> getUsbDevices(int vendorId, int productId)
           
protected  void onCreate(Bundle savedInstanceState)
           
protected  void onDestroy()
           
protected  void onNewIntent(Intent intent)
           
protected  void requestPermission(UsbDevice usbDevice)
          Request permission from the user to access the supplied UsbDevice.
 
Methods inherited from class org.ros.android.RosActivity
getMasterUri, init, onActivityResult, onStart, startActivityForResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ros.android.android_acm_serial.AcmDevicePermissionCallback
onPermissionDenied, onPermissionGranted
 

Constructor Detail

AcmDeviceActivity

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

onCreate

protected void onCreate(Bundle savedInstanceState)

onNewIntent

protected void onNewIntent(Intent intent)

getUsbDevices

protected java.util.Collection<UsbDevice> getUsbDevices(int vendorId,
                                                        int productId)

requestPermission

protected void requestPermission(UsbDevice usbDevice)
Request permission from the user to access the supplied UsbDevice.

Parameters:
usbDevice - the UsbDevice that provides ACM serial
callback - will be called once the user has granted or denied permission

onDestroy

protected void onDestroy()
Overrides:
onDestroy in class RosActivity