Click here to Skip to main content
11,495,272 members (36,004 online)
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.6K
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 Dnyaneshwar@Pune 692
1 CHill60 318
2 Sascha Lefèvre 280
3 Sergey Alexandrovich Kryukov 245
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,307
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,889
3 Maciej Los 3,412
4 Richard Deeming 2,560


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 20 Sep 2012
Copyright © CodeProject, 1999-2015
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