There are a few ways you can measure the magnetic field near a neodymium magnet. You might be able to use a magnetometer sensor to measure the field at a distance, or you could try using an app like Magnetometer Pro to measure the field close up. Either way, be careful not to get too close to the magnet, or it could magnetize parts in the device and/or mess up the compass calibration.