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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:55:09+00:00 2026-05-24T03:55:09+00:00

I am trying to launch a MapActivity from Activity using intent. Following is how

  • 0

I am trying to launch a MapActivity from Activity using intent.

Following is how i defined my MapActivity

public class googlemap extends MapActivity 
{
   /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
       ... //logic code
    }
}

I am trying to launch this MapActivity from Activty using following Intent:

//Viewreport is the Activity name
intent = new Intent(Viewreport.this,googlemap.class);
startActivity(intent);

It gives me following error in logcat:

06-23 15:48:22.812: ERROR/AndroidRuntime(295): FATAL EXCEPTION: main
06-23 15:48:22.812: ERROR/AndroidRuntime(295): java.lang.NoClassDefFoundError: pam.com.pampkg.googlemap
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at pam.com.pampkg.Viewreport$btnmaplist.onClick(Viewreport.java:61)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at android.view.View.performClick(View.java:2408)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at android.view.View$PerformClick.run(View.java:8816)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at android.os.Handler.handleCallback(Handler.java:587)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at android.os.Handler.dispatchMessage(Handler.java:92)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at android.os.Looper.loop(Looper.java:123)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at android.app.ActivityThread.main(ActivityThread.java:4627)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at java.lang.reflect.Method.invokeNative(Native Method)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at java.lang.reflect.Method.invoke(Method.java:521)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
06-23 15:48:22.812: ERROR/AndroidRuntime(295):     at dalvik.system.NativeStart.main(Native Method)

Also, I have added following to the Manifest.xml file:

<activity android:name=".googlemap" android:label="@string/app_name">
   <intent-filter>
      <action android:name="android.intent.action.MAIN" />                
      <category android:name="android.intent.category.DEFAULT" />
   </intent-filter>
</activity>

Could someone tell what I am missing here.

Thanks!

  • 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-24T03:55:10+00:00Added an answer on May 24, 2026 at 3:55 am

    I just re installed the android sdk and it worked fine. Thanks everyone for help and suggestions!

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

Sidebar

Related Questions

I am trying to launch a dialogue from a non activity java class. Can
I'm trying to launch a Java app from a C++ app using the following
I'm trying to launch my ClickOnce application using C# code with HttpWebRequest class. The
I am trying to launch the Main Activity from a broadcast receiver. Can anyone
I'm trying to launch a WPF application from a Console application, using Application Domains,
I'm trying launch an application using c#, and have been experimentiing with the following
I'm trying to launch add contact activity from my application. I've known how to
I'm trying to do something rather simple here, just launch a new activity from
I'm trying to launch an intent from my application that will play audio from
I'm trying to launch an external program from my java swing app using this:

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.