Edit : I changed my answer a bit ...
Basically, you need to rotate the magnetic north vector in the opposite direction to the corner of Magnetic Declination .
The tough part is that you need to rotate the vector on a horizontal plane. To do this, you need to know the orientation of the phone.
Here is what you need to do: