Completed

App Gps para Android

Published on the July 23, 2015 in IT & Programming

About this project

Open

Possuo um app que funciona como cliente de taxistas (similar ao 99taxis). Implementei uma classe GPS (anexo) que foi especificada no manifest (anexo também) como um sevice.

No oncreate da minha activity principal eu chamo o método startTheGPS();

-----------------
private void startTheGPS()
    {
        /* Start GPS service */
        this.srvint = new Intent(this, GPS.class);
        this.srv = startService(this.srvint);
        this.servicecon = new Con();
        boolean bind = bindService(this.srvint, this.servicecon, 0);
        if (this.srv == null && bind) {
            Helper.ok_dialog(this, "Service", "Failed starting GPS service");
            finish();
        }
    }
-----------------

Tudo funciona muito bem, mas quando o usuário tecla home para usar outro aplicativo e o meu app fica rodando em background (minimizado), após um certo tempo minha app para de receber os dados de gps e fica offline.

Gostaria de configurar esse service do GPS para que fique ativo o tempo inteiro e continue funcionando mesmo que minimizado.

Andei lendo algo nesse link:
http://developer.android.com/reference/android/app/Service.html

Creio que deva ser alguma simples configuração.

Resumindo; Já tenho uma aplicação desenvolvida e funcionando. Seu problema é que ela para de receber os dados de gps se o usuário teclar home e a deixar minimizada. Preciso que o GPS continue ativo mesmo com a app minimizada.

Category IT & Programming
Subcategory Apps programming. Android, iOS and others
Is this a project or a position? Project
I currently have Not applicable
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)
Required platforms Android

Delivery term: July 25, 2015

Skills needed

Other projects posted by T. L. M.