| Issue 68: | Not receive GPS From NETWORK_PROVIDER | |
| 3 people starred this issue and may be notified of changes. | Back to list |
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
(No comment was entered for this change.)
Labels:
-Type-Defect Type-Enhancement Version-AndroidRelease0.7
|
Owner: daniele.gobbetti