VitorFranca4 / mixare

Automatically exported from code.google.com/p/mixare
0 stars 0 forks source link

Not receive GPS From NETWORK_PROVIDER #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Not receive GPS From NETWORK_PROVIDER because in mixare only 
requestLocationUpdates for GPS_PROVIDER

What is the expected output? What do you see instead?
Need requestLocationUpdates for NETWORK_PROVIDER, and can check ProviderEnabled 
for Network and GPS, if not enable then open setting to enable Network and GPS 
the same as open Network Connection.

What version of the product are you using? On what operating system?
6.4, 6.3 , 6.2... Samsung galaxy S

Please provide any additional information below.
I think can change in MixView.java as following:

try{
gps_enabled=locationMgr.isProviderEnabled(LocationManager.GPS_PROVIDER);
}catch(Exception ex){}
try{
network_enabled=locationMgr.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
}catch(Exception ex){}

if(!gps_enabled && !network_enabled){
   //OPEN Setting to enable
}

if(gps_enabled)
  locationMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER,10000,10, this);

if(network_enabled)
                locationMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000,10, this);

Original issue reported on code.google.com by kunlq...@gmail.com on 15 Dec 2010 at 3:13

GoogleCodeExporter commented 8 years ago
Hi! 

Thanks for reporting this issue, I think it's already solved in the development 
branch of our code.

Please note that the code was moved to the context class around line 110 and 
onwards:
https://github.com/mixare/mixare/blob/development/src/org/mixare/MixContext.java

Can you please confirm that the code looks good to you?

Original comment by daniele.gobbetti on 15 Dec 2010 at 9:54

GoogleCodeExporter commented 8 years ago

Original comment by daniele.gobbetti on 15 Dec 2010 at 9:54