[Solved] How to show route on Inbuilt Map in Android Programmatically
Create layout file for Button: layout.xml <Button android:id=”@+id/showMap” android:layout_width=”@dimen/visit_button_width” android:layout_height=”wrap_content” android:layout_marginTop=”25dp” android:background=”@drawable/login_button_selector” android:text=”@string/title_show_map” android:textColor=”@color/white” android:textSize=”@dimen/button_text_size” /> onClick event of Button: ((Button)findViewById(R.id.showMap)).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub /* Check Internet Connection */ if(InternetConnection.checkConnection(context)) { /** PROCESS for Get Longitude and Latitude **/ locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); // getting … Read more