Saturday, January 1, 2011

[android-developers] Re: How to implement this with location.distanceTo()?

Thank you sir,

I managed to solve this with:
m.setLongitude(Double.valueOf(seedLon));

But is this proper? :D

On Jan 2, 12:19 pm, XiaoXiong Weng <ad...@littlebearz.com> wrote:
> Wow, smart J
>
> From: android-developers@googlegroups.com
> [mailto:android-developers@googlegroups.com] On Behalf Of TreKing
> Sent: Saturday, January 01, 2011 11:12 PM
> To: android-developers@googlegroups.com
> Subject: Re: [android-developers] How to implement this with
> location.distanceTo()?
>
> On Sat, Jan 1, 2011 at 9:34 PM, Mystique <joven.ch...@gmail.com> wrote:
>
> I have runtime error - "NumericFormatError", is it because "1.35678" is not
> Long but Float.
>
> Yes.
>
> Then .setLatitute(Long) is long... how to implement this correctly?
>
> Parse the float, scale up by 1E6, then cast to long.
>
> --------------------------------------------------------------------------- -
> ---------------------
> 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 post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment