Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Android socket
I'm trying to develop multiplayer game , like any usual games join to room game then the score of game sharing with another player.
 
After I'm searching in Google , what i see i should be start on DatagramSocket , in this link http://docs.oracle.com/javase/tutorial/networking/datagrams/index.html , i can create my WiFi internet game throwing DatagramSocket or i need something else.
 
Please let me the steps for this kind of android game
Posted 20-Sep-12 1:53am
Edited 20-Sep-12 2:43am
Wes Aday94.3K
v2
Comments
Richard MacCutchan at 20-Sep-12 8:20am
   
You need to go to the Android developer site and read the documentation on how to do this. It is impossible to give a full tutorial on this subject in a Quick Answers forum.
Abedalqader at 20-Sep-12 11:40am
   
Thanks i will do :)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

1. Setup Eclipse with Android and Java JDK as your software development tool.
 
Eclipse
http://www.eclipse.org/downloads/[^]
 
Android
http://developer.android.com/sdk/index.html[^]
 
Java JDK
http://www.oracle.com/technetwork/java/javase/downloads/index.html[^]
 
There are many good tutorials out there to help get you setup with this development environment option.
 
www.youtube.com/results?search_query=android+bootcamp&oq=android+bootcamp[^]
 

This is what the Android Developers website has to say about the DatagramSocket:
http://developer.android.com/reference/java/net/DatagramSocket.html[^]
 
Some optional development environments suitable for creating Android games are Adobe Flash CS6 or even Microsoft Visual Studio 2012...
  Permalink  
Comments
Abedalqader at 20-Sep-12 11:39am
   
Thanks for your replay , but all these things i know it , my problem i create my game in android but I'm stooping in how to deal with interaction between player and connect with server , and i don't have any idea how i cane manage it :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 120
4 DamithSL 95
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 20 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100