Mo
Posts: 0
Joined: Thu Jun 07, 2012 2:43 pm

App works on my phone, not others

The app I'm working on is working great on a samsung infuse running andriod 2.2.1, but will not work on two friends motorolas (xport & somehting else) running 2.2.2. Have you seen any issues with motorolas or 2.2.2? I'm trying to find someone with another droid phone to check with.

And are there specific settings for the min, max and target sdk I should be considering?

Thanks!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

App works on my phone, not others

What's exactly not working on the other phones?

Mo
Posts: 0
Joined: Thu Jun 07, 2012 2:43 pm

App works on my phone, not others

Okay, Here's what was happening. The REST response was only populated by one item, and that was all that was expected. But it still returns as an array. My phone ignored the fact that I didn't have the $ mapped, and just the next level. His phone broke because the $ wasn't mapped. I mapped the $ and now both phones work at that point. Still working through a couple other issues, but moving forward. If i have a single response from RESt and want to map to a local storage variable, it wants me to map the $ to the same variable as the single response. Does that sound right? It works so far on my phone. Waiting for him to test.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

App works on my phone, not others

It helps a little bit. Can you also post screen shots of how the mapping looks and what exactly doesn't work?

Even if service response is defined to return just one item, it's still possible the actual service invocation would return an array.

Mo
Posts: 0
Joined: Thu Jun 07, 2012 2:43 pm

App works on my phone, not others

Here's a screenshot showing the response mapping to a local storage variable. Seems like I would want the $ mapped to the "Local Storage" line, but it wants me to map it to an individual variable. So I mapped it to the same one that I am mapping the response variable to. Image
Maybe I need to map it to an invisible label and then set it to local storage on an event?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

App works on my phone, not others

Can you also post a sample JSON response that you get?

If $ is an array, then I don't think that will work.

Return to “Issues”