java - Android game score int add in access database through servlet -


i not sure on how go have game want expand further , let user submit score name.

this submit score , name servlet add details access database.

the score of int type.

would great if show me how this, or point me in right direction.

thanks

in android, pass score , name request parameters in url.

string url = "http://example.com/servlet?score=" + score + "&name=" + urlencoder.encode(name, "utf-8"); // connect url. 

in servlet, access them request parameters.

int score = integer.parseint(request.getparameter("score")); string name = request.getparameter("name"); // save them in db. 

see also:


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -