You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
thanks for your Java class, After implementing code from your class i get Location is=0.0,Latitude=0.0
my code here
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.distance_find);
if (findComponentID()) {
getToolBar();
getDrawerList();
location = new SimpleLocation(this);
if (!location.hasLocationEnabled()) {
// ask the user to enable location access
SimpleLocation.openSettings(this);
}
imgBtnGetLocation.setOnClickListener(new View.OnClickListener() { @OverRide
public void onClick(View v) {
getCurrentLocation();
}
});
Hi
thanks for your Java class, After implementing code from your class i get Location is=0.0,Latitude=0.0
my code here
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.distance_find);
if (findComponentID()) {
getToolBar();
getDrawerList();
location = new SimpleLocation(this);
if (!location.hasLocationEnabled()) {
// ask the user to enable location access
SimpleLocation.openSettings(this);
}
imgBtnGetLocation.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
getCurrentLocation();
}
});
@OverRide
protected void onResume() {
super.onResume();
location.beginUpdates();
}
The text was updated successfully, but these errors were encountered: