In my Java ME app, LocationProvider.getInstance(null) always returns me null in emulator.
App in early state, so I didn't tried on real phone.
I believe, I read every article about Location API, but I still don't get, why it's happening to me.
It works fine in different projects, with same settings on same emulator.
Here's the code:
if(currentLp == null)
{
try
{
System.err.println("nope");
currentLp = LocationProvider.getInstance(null);
} catch (LocationException ex)
{
System.err.println("Ooops!");
}
}
CLDC-1.1, MIDP-2.1, Location API 1.0
on DefaultCLDCPhone01 from SDK3.0