locman1 = (LocationManager) getSystemService (Context.LOCATION_SERVICE);
if (locman1.isProviderEnabled (LocationManager.NETWORK_PROVIDER)) {
TextView textview;
textview = (TextView) findViewById (R.id.lng);
textview.setText ("network: enable");
}
locman1.requestLocationUpdates (LocationManager.NETWORK_PROVIDER, 0, 0, loclistener);
Location location = new Location ("a");
location = locman1.getLastKnownLocation (LocationManager.NETWORK_PROVIDER);
if (location! = null) {
TextView textview;
textview = (TextView) findViewById (R.id.lat);
textview.setText ("lat:" + location.getLatitude ());
}
The permissions added are also added, ye will not get ah<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Try on a real machine
Reply:
Is the true test machine
Reply:
Some encountered yet
Reply:
Log information posted .....
Reply:
This. . . Weak weak to ask, what is the log information ah?
Reply:
log information to the log information
LocationManager.GPS should
possibleI did not get to LocationManager.NETWORK_PROVIDER
Reply:
I tested it on a virtual machine too, network did not get, but the GPS can
Reply:
Will the landlord did not solve the
Reply:
I sometimes take the same point gps
Reply:
I also have to get any network. gps is possible. ZTE n880 on the real machine testing.
Searched the reason can not find ah.
Reply:
Encounter the same problem. Attention.
Reply:
That seems to (have a triangular positioning) to get it through the base station location, Google's New_Work Chinese support is not good at, is not very clear or loud noise drops
Reply:
Android should set "position" option in the [Wi-Fi] tick
No comments:
Post a Comment