I am developing an app that uses the Location API and the Maps API. When I run it on the emulator, it first asks for location permissions and it works fine (but the emulator gives it dummy values). When I deploy it on the phone, it doesn't ask for location permissions and immediately gives an error. I can't trace the problem since there is no output console when you run it on the device.
Do I need to add something on my code so that it would ask for location permissions?
PS. It is a J2ME app