1. Are you ready for the Galaxy S20? Here is everything we know so far!

Saving score in local db and on server. surfaceview

Discussion in 'Android Development' started by SalmanQamar, Jul 5, 2013.

  1. SalmanQamar

    SalmanQamar Lurker
    Thread Starter

    i am creating a game. main logic is build. game is built using surface view.
    Now i want to save the score of user with name in its mobile. and giving the option if he wants to submit its score on server.
    i have written pages in php.
    when this url is hit record is saved in db
    <url/score> is showing top 10 score. format can be changed.
    please some one guide me how to launch a view saying ur name and buttons with "save" and "save and submit" and when some button pressed do corresponding work.
    and how to send values of variables score and level from surface view to it.
    save : for saving in mobile local db
    save and submit : for saving in mobile local db and submitting to server.

    1. Download the Forums for Android™ app!



Share This Page