java - Android Http Post -


i have problem http post connection in android.

i want make connect when app starting. next want exchenge many request , response (when customer press button send request , read response) , close connect if app close.

it

is possible ? must close inputstream after read response ??

i have acting http post connection send post read response , close input stream if solution ? want have 1 http client.

try using great library ion

it handle complicate stuffs you, do

ion.with(getcontext()) .load("https://koush.clockworkmod.com/test/echo") // server side script url .setbodyparameter("goop", "noop") // parameter send .setbodyparameter("foo", "bar") .asstring() .setcallback(...) 

more information here (https://github.com/koush/ion)


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -