Route Optimisation Code for Android App ( Google map )
Route Optimisation Code for Android App
Route Optimisation Tracking Code for Android App ( Google map )
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btnGoogle:
Uri gmmIntentUri = Uri.parse("google.navigation:q=28.589616, 77.302107&destination=28.633033, 77.219374&waypoints=28.570977, 77.326246|28.574829, 77.356165|28.612881, 77.277337|28.647106, 77.316171&travelmode=driving");
Intent intent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
intent.setPackage("com.google.android.apps.maps");
try {
startActivity(intent);
} catch (ActivityNotFoundException ex) {
try {
Intent unrestrictedIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
startActivity(unrestrictedIntent);
} catch (ActivityNotFoundException innerEx) {
Toast.makeText(this, "Please install a maps application", Toast.LENGTH_LONG).show();
}
}
// popUp();
}
}
Find the best delivery route planner and optimization software, mobile app for multiple delivery, job management
Comments (0)