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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:39:06+00:00 2026-05-27T03:39:06+00:00

Here im giving my code for google map view, this is not working if

  • 0

Here im giving my code for google map view, this is not working if i simulate it will comes Force close error,
any body healp me ,im giving my log cat details also…

1.gmap activity class

    package net.gmaps;

    import android.os.Bundle;

    import com.google.android.maps.MapActivity;
    public class GoogleMapsActivity extends MapActivity {
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
        MapView mv = (MapView) findViewById(R.id.mapView);
        }

        @Override
        protected boolean isRouteDisplayed() {
            // TODO Auto-generated method stub
            return false;
        }
    }

2.main.xml file

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent">

        <com.google.android.maps.MapView
                     android:id="@+id/mapView"
                     android:layout_width="fill_parent"
                     android:layout_height="fill_parent"
                     android:enabled="true"
                     android:clickable="true"
                     android:apiKey="0jEK9Odr895XgKEM5xr-nCr6stwV9dUquFVdsWg"
                     />


    </RelativeLayout>

3.android manifest file

      <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="net.gmaps"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="7" />

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <uses-library android:name="com.google.android.maps"/>
        <activity
            android:label="@string/app_name"
            android:name=".GoogleMapsActivity" >
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>


</manifest>

4.my Logcat details

     11-30 12:28:45.996: D/AndroidRuntime(306): Shutting down VM
11-30 12:28:45.996: W/dalvikvm(306): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
11-30 12:28:45.996: E/AndroidRuntime(306): Uncaught handler: thread main exiting due to uncaught exception
11-30 12:28:46.035: E/AndroidRuntime(306): java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
11-30 12:28:46.035: E/AndroidRuntime(306):  at dalvik.system.DexFile.defineClass(Native Method)
11-30 12:28:46.035: E/AndroidRuntime(306):  at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:209)
11-30 12:28:46.035: E/AndroidRuntime(306):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
11-30 12:28:46.035: E/AndroidRuntime(306):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
11-30 12:28:46.035: E/AndroidRuntime(306):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
11-30 12:28:46.035: E/AndroidRuntime(306):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
11-30 12:28:46.035: E/AndroidRuntime(306):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
11-30 12:28:46.035: E/AndroidRuntime(306):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
11-30 12:28:46.035: E/AndroidRuntime(306):  at android.app.ActivityThread.access$2200(ActivityThread.java:119)
11-30 12:28:46.035: E/AndroidRuntime(306):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
11-30 12:28:46.035: E/AndroidRuntime(306):  at android.os.Handler.dispatchMessage(Handler.java:99)
11-30 12:28:46.035: E/AndroidRuntime(306):  at android.os.Looper.loop(Looper.java:123)
11-30 12:28:46.035: E/AndroidRuntime(306):  at android.app.ActivityThread.main(ActivityThread.java:4363)
11-30 12:28:46.035: E/AndroidRuntime(306):  at java.lang.reflect.Method.invokeNative(Native Method)
11-30 12:28:46.035: E/AndroidRuntime(306):  at java.lang.reflect.Method.invoke(Method.java:521)
11-30 12:28:46.035: E/AndroidRuntime(306):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-30 12:28:46.035: E/AndroidRuntime(306):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-30 12:28:46.035: E/AndroidRuntime(306):  at dalvik.system.NativeStart.main(Native Method)
11-30 12:28:46.085: I/dalvikvm(306): threadid=7: reacting to signal 3
11-30 12:28:46.265: I/dalvikvm(306): Wrote stack trace to '/data/anr/traces.txt'
  • 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-27T03:39:07+00:00Added an answer on May 27, 2026 at 3:39 am

    In android manifest file uses library goes in your aplication tags like this:

    <application android:icon="@drawable/ic_launcher"
            android:label="@string/app_name" >
            <uses-library android:name="com.google.android.maps" />
             <activity ....
             </activity>
    </application>
    

    And put ACCESS_FINE_LOCATION
    ACCESS_COARSE_LOCATION permisions….
    On onCreate you must define mapView like this:
    MapView mapView = (MapView) findViewById(R.id.mapView); after setContent

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

Sidebar

Related Questions

Okay, so for some reason this is giving me a error as seen here:
This code is giving me this error: The object cannot be deleted because it
This code is giving me error on line 10 in IE6. That is, var
I have this code giving me the strange error message Uncaught TypeError: Cannot set
Reward: Has been claimed. Overview: The code giving me the problem is deployed here:
This is a code from my c# web application here [ Response.Write(match.Groups[1]); ] i
I am asking this question here as I could not find any conclusive results
Let me start off by apologizing for not giving a code snippet. The project
I am at a loss here. Will post my code in a short while...just
There’s a really cool diff class hosted by Google here: http://code.google.com/p/google-diff-match-patch/ I’ve used it

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.