August 10th, 2012, 12:43 PM
|
#2 (permalink)
|
|
Junior Member
Join Date: May 2012
Location: Ventimiglia, Italy
Posts: 31
Device(s): Motorola Atrix 4G
Carrier: Not Provided
Thanks: 0
Thanked 5 Times in 5 Posts
|
Networking between phones
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.
|
|
|