1. Check out our companion app, Forums for Android! Download from Google Play

Interaction between two users

Discussion in 'App Inventor' started by Zivc, Jul 22, 2012.

  1. Zivc

    Zivc New Member
    Thread Starter

    Jul 22, 2012
    sorry for my bad english...

    I want to make a game that one player can send information to another player.
    something similar to the concept of 'DrawSomething'.

    i want the game to be played turn by turn and when one player finishes his turn the other will get a notification or something and play his turn.

    i hope you understand the general idea..

    the problem is I can't find the way to do this in app inventor..
    does anyone know? thanks!


  2. Tramontana

    Tramontana Active Member

    May 30, 2012
    Technology consultant
    Ventimiglia, Italy
    I know nothing about App Inventor, but if you're talking about communicating between different devices I can think of three ways:

    1 Set up a website that each phone talks to, which relays messages from one to another. This is probably best done in PHP and requires a certain amount of experience with website coding as you need to handle logins and other stuff.

    2 If you're on the same local router (i.e. sharing a wifi point) you can connect directly using sockets. But you'll need to know the IP address of each device, which may be difficult to discover and it can change each time you connect.

    3 Use multicast networking - again if you're all on the same local network. Years ago I wrote a Java library that does a complete job, allowing Java-enabled devices to automatically discover each other and send messages. I tested it recently and it works on Android. It's part of a larger package but it may be possible unhitch it without too much effort.
  3. royalecraig

    royalecraig Member

    Feb 22, 2017
    Post the data to TinyWebDB in 'Storage'

Share This Page