here's code:
criteria criteria = new criteria(); criteria.setaccuracy(criteria.accuracy_fine); criteria.setpowerrequirement(criteria.power_low); criteria.setaltituderequired(false); criteria.setbearingrequired(false); criteria.setspeedrequired(false); locationmanager manager = (locationmanager) getsystemservice(context.location_service); manager.requestlocationupdates(0,0, criteria, locationlistener, null); // doesn't work
the listener never gets update if pass criteria argument. however, if provider cirteria , pass different arguments of request locationupdates, works
manager.requestlocationupdates(manager.getbestprovider(criteria, true), 0, 0, locationlistener); // works
is manager.requestlocationupdates(0,0, criteria, listener, looper) method broken in api?
Comments
Post a Comment