First check on your php side if the response is in json then proceed to android side
On Wed, Feb 17, 2016 at 3:58 AM, TreKing <treking...@gmail.com> wrote: > > On Tue, Feb 16, 2016 at 9:20 AM, oscar cuenca <llenamostutie...@gmail.com> > wrote: > >> The app is builded with no errors. But when I try to test in my device it >> doesn't work. >> I can't find any error. >> > > Did you try looking at the callstack you posted with this very question? > > 02-16 13:01:56.708 27336-27336/com.amg_eservices.mywisen W/System.err: > org.json.JSONException: Value <html><head> of type java.lang.String cannot be > converted to JSONObject > > You are apparently trying to parse an html response as JSON. Don't do that. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-developers+unsubscr...@googlegroups.com. > To post to this group, send email to android-developers@googlegroups.com. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-developers/CANCScggrRjF85to8fzUEhQmLdDeNra3QvndidV4GCUSiR7N48g%40mail.gmail.com > <https://groups.google.com/d/msgid/android-developers/CANCScggrRjF85to8fzUEhQmLdDeNra3QvndidV4GCUSiR7N48g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CABHzXARYv8f37jdZrhX0_EgThzmAo4W1ASNxf%2BxkO1YTWCOTpQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.