Methods Summary |
---|
public void | deviceAdded(android.mtp.MtpDevice device)
Log.d(TAG, "deviceAdded: " + device.getDeviceName());
mDeviceList = mClient.getDeviceList();
reload();
|
public void | deviceRemoved(android.mtp.MtpDevice device)
Log.d(TAG, "deviceRemoved: " + device.getDeviceName());
mDeviceList = mClient.getDeviceList();
reload();
|
protected void | onCreate(android.os.Bundle savedInstanceState)
super.onCreate(savedInstanceState);
mClient = ((CameraBrowserApplication)getApplication()).getMtpClient();
mClient.addListener(this);
mDeviceList = mClient.getDeviceList();
|
protected void | onDestroy()
mClient.removeListener(this);
super.onDestroy();
|
protected void | onListItemClick(android.widget.ListView l, android.view.View v, int position, long id)
Intent intent = new Intent(this, StorageBrowser.class);
intent.putExtra("device", mDeviceList.get(position).getDeviceName());
startActivity(intent);
|
protected void | onResume()
super.onResume();
reload();
|
private void | reload()
setListAdapter(new CameraAdapter(this));
|