Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8590589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:19:41+00:00 2026-06-11T23:19:41+00:00

The Google map was displayed but on loading the map, the title bar gets

  • 0

The Google map was displayed but on loading the map, the title bar gets disappeared.
Is there any solution to display the title bar?

private void calc_short_Distance() {
        String uri = "http://maps.google.com/maps?saddr=" + currentLatitude+","+currentLongitude+"&daddr="+fixedLatitude+","+fixedLongitude;
        Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
        intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
        //***Title bar displayed upto here and after loading intent it disappear
        startActivity(intent);


    }

Manifest code is here and main activity class is here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:19:43+00:00Added an answer on June 11, 2026 at 11:19 pm

    Your title bar is not shown over the map because you open the map as the Maps application. Now when the map is displayed, it’s not your application any more, but instead Google’s app. If you want to control how the map is shown, then you need to create your own activity with a MapView on it and use MapView API to draw your directions, etc. Your pseudo-XML may look like this:

    <LinearLayout android:orientation="vertical">
        <!-- 
        Whatever you want at the top
        -->
    
        <MapView android:layout_width="match_parent" android:layout_height="match_parent" />
    </LinearLayout>
    

    Then you’ll need to create your activity by extending MapActivity and using this XML for its content view. You can then use the MapView API to display any overlays you need. You’ll also need to obtain an API key to use with maps. Have a look at Google’s MapView tutorial for more information on how to code this activity.

    Once you have the map activity, then use the intent to start this map activity instead of the google map app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display Markers on Google map with title displayed under them as
Is there a way of preventing a Google Maps (JS, v3) map being displayed
I'm trying to display a Google Map on a JQuery Mobile page, but am
I'm using geocoding to display a google map with the users location displayed. I'm
I want to display google map in Android ,i have map API even map
I want to Display Google Map into my wordpress site. I have used below
I am trying to display google map on my application.. For this I am
I have an application where I'm using the Google Map API to display markers
I'm trying to display a Google Map inside a drupal page. The map will
I will use the following javascript to display a Google Map Window in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.