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 7645021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:50:00+00:00 2026-05-31T09:50:00+00:00

I am trying to load Google mmaps on my activity. After fighting off through

  • 0

I am trying to load Google mmaps on my activity. After fighting off through a series of errors, my log cat finally shows me this error:

03-11 23:42:08.390: E/MapActivity(712): Couldn't get connection factory client

The map activity doesn’t load any content. I tried searching for a solution, and:

  • My activity extends MapActivity
  • I have given the Internet persmission <uses-permission android:name="android.permission.INTERNET"/>
  • I also told the app that I will use the map library <uses-library android:name="com.google.android.maps"/>
  • My target machine and virtual machine both have API level 10 and both target Google API
  • My api key is correct and working.
  • I connect to the internet directly using broadband connection.

My guess is that I am unable to the internet. I tried to open the browser in the emulator and failed to open any URL. So I think I don’t have access to internet on my emulator. After searching for a while about connecting to the internet on emulator and with reference to this question I tried running the command: C:\program files\android\android-sdk-windows\tools\emulator -avd -dns-server 8.8.8.8

But I ended up with the error:

PANIC: Could not open: C:\Documents and Settings\dwadasi\.android/avd/-dns-serv
r.ini

I couldn’t understand where the problem is. I tried installing the APK file on my Android phone[2.3.6] and it worked. But I really need it to work on my emulator as there is lot of development I still need to do.

  • 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-31T09:50:01+00:00Added an answer on May 31, 2026 at 9:50 am

    try this code…. i use this and now working.

    class MapOverlay extends com.google.android.maps.Overlay
    {
        @Override
        public boolean draw(Canvas canvas, MapView mapView, 
        boolean shadow, long when) 
        {
            super.draw(canvas, mapView, shadow);                   
    
            //---translate the GeoPoint to screen pixels---
            Point screenPts = new Point();
            mapView.getProjection().toPixels(p, screenPts);
    
            //---add the marker---
            Bitmap bmp = BitmapFactory.decodeResource(
                getResources(), R.drawable.pushpin2);            
            canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50, null);         
            return true;
        }
    
        @Override
        public boolean onTouchEvent(MotionEvent event, MapView mapView) 
        {   
            add="";
            //---when user lifts his finger---
            if (event.getAction() == 1) {                
                GeoPoint p = mapView.getProjection().fromPixels(
                    (int) event.getX(),
                    (int) event.getY());
    
    
                Geocoder geoCoder = new Geocoder(
                        getBaseContext(), Locale.getDefault());
                    try {
                        List<Address> addresses = geoCoder.getFromLocation(
                            p.getLatitudeE6()  / 1E6, 
                            p.getLongitudeE6() / 1E6, 1);
    
                        lattitude=p.getLatitudeE6()  / 1E6;
                        longitude=p.getLongitudeE6() / 1E6;
    
                        if (addresses.size() > 0) 
                        {
                            for (int i=0; i<addresses.get(0).getMaxAddressLineIndex(); 
                                 i++)
                               add += addresses.get(0).getAddressLine(i) + "\n";
                        }
    
                        Toast.makeText(getBaseContext(), add, Toast.LENGTH_SHORT).show();
    
    
                    }
                    catch (IOException e) {                
                        e.printStackTrace();
                    }   
                    return true;
    
            }                
            else {
            return false;
            }
        }        
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to load a Google Maps v3 that shows 5000 markers clickable. My
I am trying to load google map to uiwebview after performing a query using
I am trying to load a google web toolkit application with django, but the
I am trying to load Google Maps in my Javascript, but I keep getting
I was trying a quick tutorial using google maps in Andriod When I load
I am trying to load a StageWebView with the Google Maps Javascript API inside
I'm trying to load the Google calendar API which comes in PHP, but firstly
I am trying to load google map on the anchor click. Below are the
I'm trying to load a google map with dynamic markers and dynamic infoWindows to
I'm trying to generate a Google Map based off of results from a database.

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.