Smartphones are becoming a part of our society, and their usage is becoming more and more widespread. Multiplayer games for these smartphones are increasingly popular and the hardware that is used often puts limits on the developer in terms of battery life and transfer rate. This paper investigates the possibility of using the Publish/Subscribe Extension of the Extensible Messaging and Presence Protocol, or XMPP, as a data transfer protocol in a multiplayer game on Android. To succeed with this, a test application is programmed and used to send position data using PubSub. The report also discusses different ways of adapting the publish/subscribe node tree to the game map. The final conclusion is that it is possible to use XMPP for gaming purposes, but comparisons to other methods will have to be made for each specific case due to the workload of interpreting XML data and the amount of data the XML needs.