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

  • Home
  • SEARCH
  • 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 7695771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:37:17+00:00 2026-05-31T21:37:17+00:00

I just started working with Android and I have a problem with my map.

  • 0

I just started working with Android and I have a problem with my map.
I created a TabActivity and added MapActivity as one of the tabs with:

spec = tabHost.newTabSpec("map").setIndicator("Map");
intent= new Intent().setClass(this, NavisMapActivity.class);
spec.setContent(intent);
tabHost.addTab(spec);

In MapActivity I get MapView from xml layout with findViewById.

     <com.google.android.maps.MapView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/mapview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:apiKey="my_key_is_here"
        android:clickable="false" />

When I load the app, everything works perfectly until I switch tabs or call another app. Basically when OnPause/OnStop is called. Then when I return to the map, its tiles start to flicker constantly. Only solution is to force the app to close.

This happens only with satellite tiles and from version 2.3.5 onward(tested it on an actual phone and in the Eclipse emulator).

So far I have tried:

  • using mapView.destroyDrawingCache() command in onPause function
  • adding mapView via code instead of xml layout
  • destroying whole MapActivity with LocalActivityManager when tab is switched and creating a new one

None of this helped. Could anyone please help me?
Thank you

  • 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-05-31T21:37:19+00:00Added an answer on May 31, 2026 at 9:37 pm

    As I mentioned in the comments this seems to be a problem with the Google Maps API:

    http://code.google.com/p/android/issues/detail?id=19154&q=google%20maps%20tiles&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

    Let’s hope that they fix it some time soon.

    I want to try some of these alternatives:

    Alternatives to google maps api

    Will report back if any is worth dealing with 🙂

    This one also seems promising: http://code.google.com/p/mapsforge/

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

Sidebar

Related Questions

Just started working with android and ran into a small problem. I am have
I have just started working on my first Android application and am going ok.
I have just started working with Android ListView . However, setAdapter function in my
I have started working on android just 1 month back (so please consider my
Just started working with .NET and MVC(1). I'm having a problem wherein in my
I have just started my career as an android programmer, and am currently relying
I've started working on some Android applications and have a question regarding how people
I've just started working with Mono for Android, and am having trouble getting a
i have just started android programming, wrote a quick code, and havn't managed to
I'm just getting started with eclipse and android development. One thing which is driving

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.