json - Android - Post content null -
I am getting a user-connected contact and I am posting it on DB. When I post, sometimes the content is futile and sometimes it does not happen. Why?
Uploads this code by using contact and phone contact post, I also send ID, token. When I upload to DB, content gives me nonsense. Sometimes I'm getting the content: is empty and sometimes it's right ...
Public Zero Upload (JasonObject Job, Int ID, Reference C) {ArrayList & lt; NameValuePair & gt; Nvp = new arreelist & lt; Nominal Payer & gt; (); Dbipload upload = new dbipload (); Database db = new database (c); Datosarisigistro dr = new datosrologist (c); Nvp.add (new binarynamewallpayer ("content", new string (.) ValueOf (job)); Nvp.add (new binary namewallpear ("token", Dr. Hash_Final (dr.token_secret (Dr. Mail), "mail"), jobcast.Tosting ())); Nvp.add (new binarynamewallpayer ("id", id + "")); JSONObject json2 = upload Uploadata (NVP, "URL"); Try {if (json2.getInt ("error") == 1) {} else {db.open (); Db.contact_table (name, phone number); Db.close (); }} Hold (JasonX Express E) {e.printStackTrace (); }}
Comments
Post a Comment