Android ParcelUuid - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android ParcelUuid class.

This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:toString
	 * */ 
	public boolean saveLastServiceUuid(ParcelUuid serviceUuid) {
		if (serviceUuid == null)
			return false; 
		return getPreferences().edit()
				.putString(DEVICE_SERVICE_UUID, serviceUuid.toString())
				.commit();
	} 
 
	/** 
	 * Retrieves last saved service UUID, to overcome bug with SDP on some 
	 * devices 
	 * */ 
	public ParcelUuid getLastBluetoothServiceUuid() {
		String savedUuid = getPreferences()
				.getString(DEVICE_SERVICE_UUID, null);
		if (savedUuid == null)
			return null; 
		else 
			return ParcelUuid.fromString(savedUuid);
3
CodeRank
This code example shows how to use the following methods:

Related Android ParcelUuid Questions & Answers:

See Code Examples for Android ParcelUuid Methods: