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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:41:17+00:00 2026-05-26T16:41:17+00:00

I am making an app in which i am using google map and my

  • 0

I am making an app in which i am using google map and my code snippet foe main xml is as follows:

<com.google.android.maps.MapView
     android:id="@+id/mapview1"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:layout_alignParentLeft="true"
     android:layout_alignParentTop="true"
     android:apiKey="0lr6nShkIg955xnYpmUOgPpsSuEJctwQIUXExhw"
     android:clickable="true"
     android:enabled="true" >
 </com.google.android.maps.MapView>

and my java code is:

import android.os.Bundle;

import com.google.android.maps.MapActivity;

public class MapList extends MapActivity {

@Override
protected boolean isRouteDisplayed() {
    // TODO Auto-generated method stub

    return false;
}

@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    System.out.println("hello1");
    super.onCreate(savedInstanceState);
    System.out.println("hello");
    setContentView(R.layout.main);
}

}

and android manifest is:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission  
 android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-library android:name="com.google.android.maps" />

but on compile time it gives me exception:

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.trigma.map/com.trigma.map.MapList}: java.lang.ClassNotFoundException: com.trigma.map.MapList in loader dalvik.system.PathClassLoader[/data/app/com.trigma.map-1.apk].

Can anyone help me how to solve this?

  • 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-26T16:41:18+00:00Added an answer on May 26, 2026 at 4:41 pm

    As you said you have written this but Have you defined this line

    <uses-library android:name="com.google.android.maps" />

    in between the <application> here </application> Tag?

    Yesterday i did the same mistake,so just asking to check.

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

Sidebar

Related Questions

I am making an android app in which i am using google maps which
I’m making an android app, which uses Google maps. One functionality is that the
I’m making a simple LOB app which loads data from an XML file and
I am making an android database app in which when i fetch values from
I am mking an android app in which i am making dynamically table rows
I'm making an app which has a tableview and a DetailViewController. I'm using Apple's
I am making android app in which I am facing problem . The overview
I am making an app in which i have to show Map in my
I am making an app in which I have to encrypt the xml from
I am making an app in which i am using view based application. My

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.