hello everyone i am developing an application that makes a compass pointing to my house i am so tired and i can't get any results from any book or forum i found THIS question it's very good but i need something more advanced any ideas maybe from longitude latitude connected to the compass
Asked
Active
Viewed 1,341 times
-1
-
Check http://stackoverflow.com/a/4316717/813951 – Mister Smith Nov 20 '12 at 16:48
-
dupe of stackoverflow.com/a/4316717/813951 – petey Nov 20 '12 at 17:47
2 Answers
1
how are you acheiveing this ? is it an image in the background of your home ? because you can rotate the image in the background so compass will point to your home

jnr
- 229
- 2
- 5
-
no it's not image i need to make the compass needle to point on my house instead of the NORTH – Poison Sniper Nov 20 '12 at 16:37
-
actually i am doing this with the basic compass (witch using sensor manager) i believe the answer will be inside onDraw(Canvas canvas) method – Poison Sniper Nov 20 '12 at 16:50
-
1okay chack this : http://stackoverflow.com/questions/8680268/pointing-to-a-specific-location-compass-using-an-image-instead-of-drwaing – jnr Nov 20 '12 at 17:02
-
1thank you very very very much it look just what i am looking for i hope this code will be good – Poison Sniper Nov 20 '12 at 17:15
0
You can use the Location Manager to get the longitude and latitude. More on this here: How to get Latitude and Longitude of the mobile device in android?
-
actually i need to connect the compass with specific location to point on it like NORTH – Poison Sniper Nov 20 '12 at 16:35