Peer-to-peer phone application?

by Silver » Fri, 25 Sep 2009 07:27:14 GMT


Sponsored Links
 Hello all,

I'm with a group of college students making a multiplayer game as a
class project on the Android platform for the G1. Our primary goal is
to allow multiple phones (or for the sake of initial testing, a phone
and an emulator on a PC) to communicate with one another. Our game is
turn based, and we've been looking into TCP/IP and VNC proxy servers
to transfer data between the game clients on each phone, but none of
them seem particularly simple to implement. We've been through many
articles documenting how difficult peer-to-peer connections are on the
Android platform.

What would some viable network protocols to use for the sake of our
project and how should we go about setting them up?


Thanks,
S

--~--~---------~--~----~------------~-------~--~----~



Peer-to-peer phone application?

by Dan Sherman » Fri, 25 Sep 2009 07:48:58 GMT


 Put a server between them, and have each of them talk to the server.

NAT punchthrough and such isn't easy, and to be honest, with a game, you
want some sort of central system to make sure everything is legit
(anti-cheating) :)

- Dan





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Peer-to-peer phone application?

by Roman ( T-Mobile USA) » Sat, 26 Sep 2009 01:52:33 GMT


 Right now there is no "real" P2P possible on Android using the
official SDK APIs.

In case of Wifi there is no support of Ad-Hoc. You could try to use a
multicast approach where you try first to discover which devices are
in the WLAN. Problem with multicast/broadcast on Wifi is that your
network performance gets impacted very fast when you add the number of
clients in the network. Also the type of traffic in the WLAN
influences the throughput.

If you think about using a central server then I would not all your
setup "P2P" anymore.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
T  Mobile stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ALSA BOOTUP ERROR !!!

Hi All,

     I have built android filesystem with ALSA downloaded from git, I
changed BoardConfig.mk to Then turn on BOARD_USES_ALSA_AUDIO := true
andBUILD_WITH_ALSA_UTILS := true, Code got successfully compiled , but when
ported I am getting this message at bootup , from where it is not going
further, I am unable to see android screen: Kindly provide some pointers on
this issue,

Error Log :

W/AudioSystem( 1714): AudioFlinger not published, waiting...
I/ServiceManager( 1714): Waiting for sevice media.audio_flinger...
I/ServiceManager( 1714): Waiting for sevice media.audio_flinger...
I/ServiceManager( 1714): Waiting for sevice media.audio_flinger...
I/ServiceManager( 1714): Waiting for sevice media.audio_flinger...
I/ServiceManager( 1714): Waiting for sevice media.audio_flinger...
I/        ( 1848): ServiceManager: 0xac38
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:1589:(snd_config_load1)
_toplevel_:10:1:Unexpected char
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:2850:(snd_config_hook_load)
/etc/asound.conf may be old or corrupted: considt
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:2714:(snd_config_hooks_call)
function snd_config_hook_load returned error: It
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:3079:(snd_config_update_r)
hooks failed, removing configuration
E/AudioHardwareALSA( 1848): Unable to attach mixer to device
AndroidPlayback: Invalid argument
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:1589:(snd_config_load1)
_toplevel_:10:1:Unexpected char
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:2850:(snd_config_hook_load)
/etc/asound.conf may be old or corrupted: considt
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:2714:(snd_config_hooks_call)
function snd_config_hook_load returned error: It
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:3079:(snd_config_update_r)
hooks failed, removing configuration
E/AudioHardwareALSA( 1848): Unable to attach mixer to device default:
Invalid argument
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:1589:(snd_config_load1)
_toplevel_:10:1:Unexpected char
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:2850:(snd_config_hook_load)
/etc/asound.conf may be old or corrupted: considt
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:2714:(snd_config_hooks_call)
function snd_config_hook_load returned error: It
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:3079:(snd_config_update_r)
hooks failed, removing configuration
E/AudioHardwareALSA( 1848): Unable to attach mixer to device AndroidRecord:
Invalid argument
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:1589:(snd_config_load1)
_toplevel_:10:1:Unexpected char
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:2850:(snd_config_hook_load)
/etc/asound.conf may be old or corrupted: considt
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:2714:(snd_config_hooks_call)
function snd_config_hook_load returned error: It
E/ALSALib ( 1848): external/alsa-lib/src/conf.c:3079:(snd_config_update_r)
hooks failed, removing configuration
E/AudioHardwareALSA( 1848): Unable to attach mixer to device default:
Invalid argument



-- 
Best Regards,
Rajesh N

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. TimerTask and Views

Is it a no-no to try to update a View from a TimerTask? My initial
experiments indicate it doesn't work. Is there a way to make it work?
--~--~---------~--~----~------------~-------~--~----~

3. remove drop icon in expandablelist

4. play sound issue

5. Query of building standalone toolchain

6. emulator: warning: opening audio output failed

7. Floating View