-1

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

Community
  • 1
  • 1
Poison Sniper
  • 148
  • 2
  • 15

2 Answers2

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
  • 1
    okay 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
  • 1
    thank 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?

Community
  • 1
  • 1
Sujen
  • 1,614
  • 5
  • 19
  • 25