1

I have a data structure representing gestures event:

public class GestureData {

    private int gestureType;
    private float arg1;
    private float arg2;

    public GestureData (int gestureType, float arg1, float arg2) {
        this.gestureType = gestureType;
        this.arg1 = arg1;
        this.arg2 = arg2;
    }
}

And I'm trying to transfer this object via bluetooth, from the android to the pc.
I have found the current post suggesting protobuf.
Is this a good practice for this purpose?

Community
  • 1
  • 1
Presen
  • 1,809
  • 4
  • 31
  • 46

0 Answers0