Firebase: update an integer value
问题 So im coding an inventory management app and I'm using a barcode scanner to scan my products. My idea is that every time that a product gets scanned I need to remove one quantity of it on my database. Like this: Scan product-->quantity=quantity-1 And this is my code @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mFirestore = FirebaseFirestore.getInstance(); scannerView = new ZXingScannerView(this); setContentView(scannerView); private void