org.ros.android.android_acm_serial
Class AcmDeviceActivity
java.lang.Object
Activity
org.ros.android.RosActivity
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcmDeviceActivity
protected AcmDeviceActivity(java.lang.String notificationTicker,
java.lang.String notificationTitle)
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 serialcallback
- will be called once the user has granted or denied permission
onDestroy
protected void onDestroy()
- Overrides:
onDestroy
in class RosActivity