Page 1 of 1

App works on my phone, not others

Posted: Tue Jun 26, 2012 1:58 pm
by Mo

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!


App works on my phone, not others

Posted: Tue Jun 26, 2012 2:03 pm
by maxkatz

What's exactly not working on the other phones?


App works on my phone, not others

Posted: Sat Jun 30, 2012 6:28 pm
by Mo

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.


App works on my phone, not others

Posted: Sun Jul 01, 2012 4:11 am
by maxkatz

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.


App works on my phone, not others

Posted: Sun Jul 01, 2012 2:39 pm
by Mo

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?


App works on my phone, not others

Posted: Sun Jul 01, 2012 7:30 pm
by maxkatz

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

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