Hi All,
We have a partner that developed an application that get the information from GPS. They are using the standard location APi (without GMS functions) and have tested it on some our Devices: TC55 AOSP, TC56 AOSP and the application works. When they tried at MC36 it doesn't work. I made a test with our Device Diagnostic tools and the result is the same, we don't receive any information from the GPS of MC36?
Could anybody help me with this? We have a project with more then 500 units of MC36 stopped because this issue. Following in the message I put the code that the partner implemented:
**************************************************************************************************************************************
public class ControleGps { /** * Gerenciador do acesso a API de localização */ private LocationManager locationManager; /** * Construtor passando a atividade. */ public ControleGps(Context context, int precisaoLimite, int tempoLimite) { super(); this.locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); ... } /** * Inicia a busca pela coordenada GPS */ public synchronized void iniciarBusca() { try { if (!isBuscando()) { listener = new MelhorLocalizacaoListener(precisaoLimite, tempoLimite); locationManager.requestLocationUpdates(MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, gerarCriterio(), listener, null); } } catch (SecurityException e) { listener = null; MetrusLog.e(this, e.getMessage()); } } /** * Finaliza a busca pela coordenada GPS e retorna a melhor coordenada encontrada */ public synchronized Location finalizarBusca() { Location location = null; try { if (isBuscando()) { locationManager.removeUpdates(listener); location = listener.getMelhorLocalizacao(); listener = null; pausado = false; } } catch (SecurityException e) { MetrusLog.e(this, e.getMessage()); } return location; }}********************************************************************************
Thanks a lot
Levi
Problem with GPS on MC36 |
0 Replies