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.