Code example for UUID

Methods: toString

0
		  tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
		  String tmDevice, tmSerial, androidId;
		  tmDevice = "" + tm.getDeviceId();
		  tmSerial = "" + tm.getSimSerialNumber();
		  androidId = "" + android.provider.Settings.Secure.getString(context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
		  UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode());
		  deviceId = deviceUuid.toString();
		   
		  this.appSharedPrefs = context.getSharedPreferences("edu.ucsb.geog", Context.MODE_WORLD_READABLE);
	} 
	 
	@Override 
	public void run() { 
		long start = new Long(System.currentTimeMillis());
		gBssids = new HashMap<String, Integer>();
		for(int i=0;i<100;i++) {
			ArrayList<String> bssids = doScan(this.context, i);
			for (String s : bssids) {
				boolean match = false;
				Iterator iBssids = gBssids.keySet().iterator();
Contextual code suggestions in your IDE  Get Codota for Java