Hello Guys i have doubts regarding the android GPS and android maps.
1)i heard Android have both webview and native API to show maps? and if so does this mean i don't need internet connection when i am using native API's or even does it need data connection??
2)can i change color of map lets say for road routes its shows like blue color i want to lets say make it red is it possible???If yes can you please give me some links on this.
public class MainActivity extends Activity implements LocationListener{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
LocationManager LocMgr = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
LocationListener LocLis = this;
LocMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, LocLis);
}
@Override
public void onLocationChanged(Location Loc) {
Loc.getLatitude();
Loc.getLongitude();
Toast.makeText(getApplicationContext(), (int) Loc.getLatitude(), Toast.LENGTH_LONG).show();
}
@Override
public void onProviderDisabled(String provider) {
Toast.makeText(getBaseContext(), "OFF", Toast.LENGTH_LONG).show();
}
@Override
public void onProviderEnabled(String provider) {
Toast.makeText(getBaseContext(), "ON", Toast.LENGTH_LONG).show();
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
}
Thank You!