Code example for UsbDevice

Methods: getDeviceName

0
 
	/** Called when the activity is first created. */ 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		edit = (EditText) findViewById(R.id.editText1);
 
	} 
 
	public void onClickDataButton(View v) {
		writeFile(getUUID(), false); 
	} 
 
	public void onClickSDcardButton(View v) {
		String path = Environment.getExternalStorageDirectory().getPath() + "/" + getUUID();
		Log.v(getClass().getName(), "path:" + path);
		writeFile(path, true);
	} 
 
	public void onClickUsbButton(View v) {