Causes and solutions of abnormal Android Java.lang.IllegalStateException offending Field:mspans

Source: Internet
Author: User

String Lience=chepai_short.gettext (). ToString () +chepai_number.gettext (). ToString (); Openmap.put ("Lience", Lience.tostring ());       Openmap.put ("UserName", Tv_username.gettext (). toString ()); Openmap.put ("Cardtype", Tv_cardtype.gettext (). toString ());  Openmap.put ("Inoutname", Tv_inrk.gettext (). toString ());  Openmap.put ("Inoperatorcard", SwitchActivity.username.toString ());  Switchactivity.username//jsonpost_mode mode=new Jsonpost_mode ();//mode. Lience (lience);//mode. UserName (Tv_username.gettext (). toString ());//mode. Cardtype (); String resultdata= ""; String content= ""; if (Openmap.size ()!=0) {Gsonbuilder Gsonbuilder = new Gsonbuilder ();  Gsonbuilder.registertypeadapter (Exception.class, New Exceptionserializer ());    Gson Gson = Gsonbuilder.create (); Content= "josnstr=" +urlencoder.encode (Gson.tojson (Openmap), "Utf-8");} Resultdata=httpposttools.getpostreslut ("Home/gateinset", content);


Remember to determine the good type in the object type. In particular Getext () please remember ToString () ...

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Causes and solutions of abnormal Android Java.lang.IllegalStateException offending Field:mspans

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.