Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old October 1st, 2012, 07:34 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Oct 2012
Posts: 19
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Question Latency and Wifi protocal

Hey guys, im new just want to first say Hello.

Now I'm planning to create a top down 2D rpg game for android for my final year project, this will allow the user to move around with the touch screen and attack using the touch screen, the user can also perform spells by drawing a letter or a symbol on the screen, and one player can host a game so 3 other players can join via Wifi and all go on a adventure together. Now im looking for some articles about Latency and Wifi with the android,

So here is my question, does the Android OS have any problems with Wifi, is the Wifi is provides good and reliable? what is the common most playable latency that players will put up with on a android app. Also if any of you guys know any articles about game design, network protocols, android, windows anything related to game design and operating systems a link to them that would be very nice.

Canvas

Also what is the protocol that Wifi uses? is it TCP, UDP, HTTP??? I've never designed anything for Android and I have never designed anything with networking either. Also do you have to pay to release app's on IOS?

Advertisements
Canvas is offline  
Last edited by Canvas; October 1st, 2012 at 07:47 AM.
Reply With Quote
sponsored links
Old October 1st, 2012, 08:16 AM   #2 (permalink)
Member
 
Join Date: Jun 2011
Posts: 173
 
Device(s): HTC Sensation XE
Carrier: Not Provided

Thanks: 24
Thanked 23 Times in 18 Posts
Default

Hi Canvas

XDAdevelopers is a good resource for new and old programmers.

This Page is a good place to start: Want to Learn How to Program for Android? Start Here – xda-developers

Not sure about ererything else you asked

But it's a start...

K.
Kruncha is offline  
Reply With Quote
The Following User Says Thank You to Kruncha For This Useful Post:
Canvas (October 1st, 2012)
Old October 1st, 2012, 11:49 AM   #3 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

Moved to Android Development Forume. =)

Wifi is its own protocol. It will behave on an Android device just as it would on any other wifi-enabled device. 3g on the other hand is very slow and depending on the requirements might not be fast enough to handle things.
jonbonazza is offline  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
Canvas (October 1st, 2012)
Old October 1st, 2012, 05:55 PM   #4 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Oct 2012
Posts: 19
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thank you for the posts, Jonbonazza do you have any website that tells me about the specs on Wifi? I would search it but it seems you know more, and can probably tell from a good article then a bad one, if you can't don't worry, 3G doesn't seem the way to go but I will research that in my own time. Also the game will be hosted by one person and then up to 3 others can connect to that phone and play the game, and of course this will most probably be done with Wifi, now I'm probably not going to use a server because
A) not everyone has internet on their phone
B) mobile network drains more power then Wifi
C) Wifi keeps the playing group in a social area so they can actually talk face to face together, this rules out a chat system .
Canvas is offline  
Reply With Quote
Old October 1st, 2012, 08:24 PM   #5 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

I can tell you right now that you won't have any issues with Wifi, especially if you expect players to be withing talking distance (which would mean they are most likely on the same network). With that said, if you really do wish to attempt to keep people in a talking distance when playing against each other, it would probably be better to go with a near field technology such as Bluetooth or NFC (Android 4.0+ has a really neat feature called Android Beam which uses a phone's NFC chip to quickly and reliably transfer data at very fast speeds, although its range is pretty short--much shorter than that of even Bluetooth which I believe has a max range of 300 yards).
jonbonazza is offline  
Reply With Quote
Old October 2nd, 2012, 05:22 AM   #6 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Oct 2012
Posts: 19
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Android Beam??? sounds quite interesting, Well the talking distance would be like in a living room all together, but do you know what the distance is for the Android Beam? and also only 4.0 phones have it, so I may have to stick with Wifi so I can support old mobile devices also, but when you say on the same network, for someone to host the game would they have to become a wifi hot-spot i take it?
Canvas is offline  
Reply With Quote
Old October 2nd, 2012, 08:09 AM   #7 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

If players are going to be that close, I recommend using BT instead of wifi... It's more meant for closer range communication than Wifi.
jonbonazza is offline  
Reply With Quote
Old October 2nd, 2012, 12:32 PM   #8 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Oct 2012
Posts: 19
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

ok is Bluetooth quicker then Wifi at that distance? why bluetooth instead of Wifi? Is bluetooth easier to code with and handle packets then Wifi? Also is real time updates using bluetooth with 3 people connected to one phone be good enough for real time updates?
Canvas is offline  
Last edited by Canvas; October 2nd, 2012 at 12:35 PM.
Reply With Quote
Old October 2nd, 2012, 01:40 PM   #9 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

Neither is necessarily easier to program, but Bluetooth doesn't require an internet connection, so players would be able to play virtually anywhere. Wifi is a remote protocol and, while it will work for this, it isn't exactly intended for it. Bluetooth was designed exactly for scenarios like this. As far as speed, I am fairly certain that BT will outperform Wifi at close ranges, but reliability is the big thing here. With BT, you don't need to worry about the quality of either user's connection. It is guaranteed to work at the same speed at 1 ft away, as 300 ft... With Wifi, well... It's hard to tell what you will get.

Rather than try to give you my opinions and estimations which may or may not be educated, here is a link to a good comparison between Bluetooth and Wifi. Choose Whichever one suits your needs better. With that said, also be sure to take the reliability I mentioned above into consideration as well--it isn't covered in this comparison for some reason.
http://www.diffen.com/difference/Bluetooth_vs_Wifi
jonbonazza is offline  
Last edited by jonbonazza; October 2nd, 2012 at 01:43 PM.
Reply With Quote
Old October 3rd, 2012, 07:12 AM   #10 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Oct 2012
Posts: 19
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

I will take a look at that article later when I have time,

Well to be honest the packets that will be sent to the other "3" players will just be the hosts location (X and Y) and the monster info, which will have (hp,monsterID,attack) thats really about it, so the packets that will be sent across BT or Wifi will very small, its just my whole final year project is a basic game with real time network play, Just want to ask, is real time networking between android mobile quite easy? or do it completely depend on how the program is managed and how the packets are passed and used? I want this project o be pushing, well it is as I havent used Android before or Networking, but to honest There is alot of research I can do on mobile platforms, games already out there and also network protocols.
Canvas is offline  
Reply With Quote
sponsored links
Reply
Tags
android, design, fyp, game, latency, rpg, top-down, wifi


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:52 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.