Can two android application running on different machines have same database : I have two android applications running on different machines data between them has to be same which is stored in there sqlite database.

What i need to do is just same as pos machines in big stores or stores like KFC or Mc Donalds . If a store has stock of 4 quantity and machine a sells 4 quantity second machine should not be able to sell it.

Please help me.