public void DeviceConnectedEventHandler(object sender, AndroidMessageArgs<AndroidJavaObject> args)
        {
            AndroidJavaObject device = args.data;
			int pid = device.Get<int> ("PID");

			if (!__Generics.ContainsKey(pid.ToString()))
            {
                // UnityEngine.Debug.Log(args.Message);
                GenericHIDDevice info = new GenericHIDDevice(__Generics.Count, device, this);

                info.hidInterface = this;

                ResolveDevice(info);
            }
        }
        public void DeviceDisconnectedEventHandler(object sender, AndroidMessageArgs<int> args)
        {

            string pid = args.data.ToString();
           
            if (__Generics.ContainsKey(pid))
            {
				HIDDevice device=__Generics[pid];
                this.droidHIDBehaviour.Log(TAG, "Device " + device.Name + " index:" + device.index+ " Removed");
                this.__Generics.Remove(pid);

				this.DeviceDisconnectEvent(this,new DeviceEventArgs<string>(pid));
               
            }



        }