Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying data from server

 
pingkan paula
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i'm developing client server game
I'm now creating screen which receive and display game history from server
The problem is i can't display all data on the screen which are gained from server ,anyone can give me feedbacks?
Here's the server code


here's the client's code
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I'd consider paginating the results sent back from the server. If by any chance the user has so many games that the data returned is huge it would really piss off the mobile user that they have to wait such a long time to get data back, and in some cases costing them lots of money.

By using a parameter that passes the "page" to get, then you can return say the 5 on that page, then the device can display it much easier.

Good Luck.

Mark
 
Jay Sanchez
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest using Canvas to display the game info on the device. With canvas you can control the size of the fonts and text wrapping and scrolling.

I don't know specifically the info you have to display but I can't imagine that it would be so much where you can read in the inputstream from an HTTP connection and save it in a Vector or Hashtable and read the data from there and then render the canvas display.

Hope this helps.

Regards,

Jay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic