On Thu, Oct 13, 2011 at 6:53 PM, Fu <fuhaoh...@gmail.com> wrote: > can anyone give me an idea about how to wirte a android app to > define whether my phone's camera is facing a given gps coordinates or > not.and if not, give the direction to let my phone's camera to face > that given gps coordinates. >
You need: + Given GPS point + Phone location (see docs) + Device orientation (see docs) + Linear algebra to determine angle of rotation difference between device orientation and target point (see high school) ------------------------------------------------------------------------------------------------- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en