• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

displaying data from server

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic