Issue 68: Not receive GPS From NETWORK_PROVIDER
Reported by kunlq...@gmail.com, Dec 14, 2010
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);


Dec 15, 2010
Project Member #1 daniele.gobbetti
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?
Status: Started
Owner: daniele.gobbetti
Dec 15, 2010
Project Member #2 daniele.gobbetti
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement Version-AndroidRelease0.7