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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:17:28+00:00 2026-06-02T01:17:28+00:00

Activity where I want to use: import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class BankoTinklasMap extends

  • 0

Activity where I want to use:

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
public class BankoTinklasMap extends MapActivity {

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.banko_tinklas_map);

    MapView map = (MapView) findViewById(R.id.map);
    map.setBuiltInZoomControls(true);
}

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

I added activity to Manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lt.balticamadeus.babank"
android:versionCode="1"
android:versionName="1.0" >
<uses-library android:name="com.google.android.maps" />
<uses-permission android:name="android.permission.INTERNET" />

<uses-sdk android:minSdkVersion="4" 
    android:targetSdkVersion="10"/>
<application

    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.Light.NoTitleBar">
    <!-- other activities goes here. They work fine -->
    <activity
        android:name="BankoTinklasMap"
        android:screenOrientation="portrait" >
    </activity>
</application>
</manifest>

xml layout file looks like in android tutorial:

<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/map"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true"
    android:apiKey="My_Real_api_key_but_i_dont_show_you"
/>

Maps library exist, because target is Google API. So eclipse and compilation doesn’t show any problem.
Problem is that I get this error while trying to launch Activity at run time:

 04-17 08:51:07.637: E/AndroidRuntime(25080): java.lang.NoClassDefFoundError: lt.balticamadeus.babank.BankoTinklasMap

So question is: What I missed, so I can launch this activity right way?

  • 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-06-02T01:17:30+00:00Added an answer on June 2, 2026 at 1:17 am

    Do following changes

    <activity
        android:name="your package name.BankoTinklasMap"
        android:screenOrientation="portrait" >
    </activity>
    

    & put below line inside your application tag

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

    Let me know if it’s still not working…………

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

Sidebar

Related Questions

I want to use an activity as dialog and i made the theme of
I want to display html in android activity through web view,my screen will be
i want to use Android spinner with following data. Spinner will display only text
I want to use simple snmp get in android.I found the code for java
I've been trying to use an android preference activity, I got it all set
I want to use an AutoCompleteTextView in my activity and populate the data as
I am still newbie to android, please could someone help. I want to use
I want to use camera preview in an activity. I want to add images(transparent
I want to use to start an activity from jar file with my application.
I'm working on an activity which other 3rd parties want to use in their

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.