Re: [android-developers] REST Service phpp android Studio not work.

2016-02-16 Thread sardar khan
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  wrote:

>
> On Tue, Feb 16, 2016 at 9:20 AM, oscar cuenca 
> 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  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  - 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
> 
> .
> 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.


Re: [android-developers] REST Service phpp android Studio not work.

2016-02-16 Thread TreKing
On Tue, Feb 16, 2016 at 9:20 AM, oscar cuenca 
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  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  - 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.
For more options, visit https://groups.google.com/d/optout.