Hello Kishore,

As far as I know, there is a bug for the Point class on distance
method.
Find the difference of x axises and y axises and use Pythagorean
theorem to find the distance.

Best wishes,
sacoskun

On Jun 30, 1:40 pm, Kishore <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am trying to find distance between 2 Points using
> android.graphics.Point.
>
> I am passing 2 Point parameters to the function -  public static float
> distance(Point a, Point b)
>
> Unfortunately, it gives me the following error:
>
> ERROR/AndroidRuntime(1962): Uncaught handler: thread Main exiting due
> to uncaught exception
> ERROR/AndroidRuntime(1962): java.lang.UnsatisfiedLinkError: length
> ERROR/AndroidRuntime(1962):     at
> android.graphics.Point.length(Native Method)
> ERROR/AndroidRuntime(1962):     at
> android.graphics.Point.distance(Point.java:98)
>
> Please let me know any solution if you have.
>
> Thanks,
> Kishore
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to