Methods Summary |
---|
public void | addStorage(MtpStorage storage)
native_add_storage(storage);
|
private final native void | native_add_storage(MtpStorage storage)
|
private final native void | native_cleanup()
|
private final native void | native_remove_storage(int storageId)
|
private final native void | native_run()
|
private final native void | native_send_device_property_changed(int property)
|
private final native void | native_send_object_added(int handle)
|
private final native void | native_send_object_removed(int handle)
|
private final native void | native_setup(MtpDatabase database, boolean usePtp)
|
public void | removeStorage(MtpStorage storage)
native_remove_storage(storage.getStorageId());
|
public void | run()
native_run();
native_cleanup();
|
public void | sendDevicePropertyChanged(int property)
native_send_device_property_changed(property);
|
public void | sendObjectAdded(int handle)
native_send_object_added(handle);
|
public void | sendObjectRemoved(int handle)
native_send_object_removed(handle);
|
public void | start()
Thread thread = new Thread(this, "MtpServer");
thread.start();
|