Re: [android-developers] Mecca direction app

2012-08-06 Thread James Black
The easiest way may be to get the current GPS coordinates of the phone and
know it for Mecca.

Then, Google for simple compass sensormanager  on android-er.blog spot (I
am on my phone so cut/paste would be a pain) and you should be able to help
the user point correctly.
On Aug 6, 2012 8:41 AM, Talha Qamar talha.kicsi...@gmail.com wrote:

 Hi i wanna make a Kibla(Qibla or Mecca the holy city) direction app for
 android.If any one have some knowledge about this.Please do share with
 me(Tutorials,Links and code).
 Regards,
 Talha Qamar.

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Mecca direction app

2012-08-06 Thread Kristopher Micinski
It would be best if you didn't cross post, especially since this
message went out to so vastly many groups, android-developers is the
appropriate place for this question.

As for the answer, yes, James pointed out a good solution, you can
look into using LocationManager, along with a Sensor for compass.
Basically you need a location of the user and a location of wherever
you want to orient yourself toward.

With that information, you can create a vector: this becomes a classic
problem of finding a tangent vector on a sphere along a path, (i.e.,
the kind of little pointy things that shoot off of line integrals..,
remember?)

kris

On Mon, Aug 6, 2012 at 8:41 AM, Talha Qamar talha.kicsi...@gmail.com wrote:
 Hi i wanna make a Kibla(Qibla or Mecca the holy city) direction app for
 android.If any one have some knowledge about this.Please do share with
 me(Tutorials,Links and code).
 Regards,
 Talha Qamar.

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en