Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timob 10309: Android: Ti.Geolocation.forwardGeocoder() callback is not called for a bad address #2700

Merged
merged 4 commits into from Aug 10, 2012

Conversation

pingwang2011
Copy link
Contributor

String errorCode = jsonObject.getString(TiC.ERROR_PROPERTY_ERRORCODE);
errorDict.put(TiC.PROPERTY_MESSAGE, "Unable to resolve message: Code (" + errorCode + ")");
errorDict.put(TiC.PROPERTY_CODE, errorCode);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you delete these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because on iOS, the property "error" is a string. I deleted these and put all those info to a string for parity with iOS.

@hieupham007
Copy link
Contributor

Code reviewed. Please address comments. Also, functional tested and I notice that on iOS, only 1 alert pops up at a time, i.e if you don't close the 1st alert, you won't see the 2nd one. That's not the case in Android, i.e: alerts come up on top of one another. I know this is doable in Android but will be a bit tricky.

@pingwang2011
Copy link
Contributor Author

@hieupham007, the alert issue on Android you mentioned is filed in JIRA (https://jira.appcelerator.org/browse/TIMOB-6246).

@hieupham007
Copy link
Contributor

Functional failed. Got this error twice in log http://pastie.org/private/ygqgdgbppqvet6b8vhl6a. The error should be handled gracefully.

@pingwang2011
Copy link
Contributor Author

That error is caused by the invalid address. It is caught and output in the log. And in callback we return the event with success=false.

@hieupham007
Copy link
Contributor

Hmm, if its caught we shouldn't print out the stack traces though. A Log.e would suffice.

@pingwang2011
Copy link
Contributor Author

Ready for review again.

@ayeung
Copy link
Contributor

ayeung commented Aug 10, 2012

Code reviewed and functionally tested. Request Accepted

ayeung pushed a commit that referenced this pull request Aug 10, 2012
Timob 10309: Android: Ti.Geolocation.forwardGeocoder() callback is not called for a bad address
@ayeung ayeung merged commit f682e7f into tidev:master Aug 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants