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

  • Home
  • SEARCH
  • 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 6192515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:57:22+00:00 2026-05-24T02:57:22+00:00

I am getting a problem in my google map application problem. This is my

  • 0

I am getting a problem in my google map application problem.
This is my manifest code..

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.GPS"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-sdk android:minSdkVersion="8" />
    <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">

        <activity android:name=".GPS_Testing"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <uses-library android:name="com.google.android.maps"></uses-library>
    </application>


</manifest>

This is my main.xml file

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    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:apiKey="0trTDjnICco0ZzgjmvY3zTe7PNXzAsoG9iRWtPw"
    />

</LinearLayout>

This is my main program

package com.GPS;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.Toast;

public class GPS_Testing extends MapActivity {
    private MapView mapView;
    private MapController mapController;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);    
    /*Create MapView Target*/
    mapView=(MapView)findViewById(R.id.mapview);

    LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
    LocationListener mlocListener = new MyLocationListener();
    mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, mlocListener);
    mapView.setBuiltInZoomControls(true);

    mapController = mapView.getController();
    mapController.setZoom(16); 
    }

    /* Class My Location Listener */

    public class MyLocationListener implements LocationListener

    {

    @Override

    public void onLocationChanged(Location loc)

    {

    loc.getLatitude();

    loc.getLongitude();

    String Text = "My current location is:" +

    "Latitud =" + loc.getLatitude() +

    "Longitud =" + loc.getLongitude();

    Toast.makeText( getApplicationContext(),

    Text,

    Toast.LENGTH_LONG).show();

    }

    @Override

    public void onProviderDisabled(String provider)

    {

    Toast.makeText( getApplicationContext(),

    "Gps Disabled",

    Toast.LENGTH_SHORT ).show();

    }

    @Override

    public void onProviderEnabled(String provider)

    {

    Toast.makeText( getApplicationContext(),

    "Gps Enabled",

    Toast.LENGTH_SHORT).show();

    }

    @Override
    public void onStatusChanged(String provider, int status, Bundle extras) {
        // TODO Auto-generated method stub

    }

    }
    @Override
    protected boolean isRouteDisplayed()
    {
        return false;
    }
}

Logcat error:

07-28 15:04:08.333: ERROR/AndroidRuntime(12075): FATAL EXCEPTION: main
07-28 15:04:08.333: ERROR/AndroidRuntime(12075): java.lang.NoClassDefFoundError: android.net.NetworkConnectivityListener
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at com.google.android.maps.MapActivity.onCreate(MapActivity.java:199)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at com.GPS.GPS_Testing.onCreate(GPS_Testing.java:19)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at android.os.Looper.loop(Looper.java:123)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at android.app.ActivityThread.main(ActivityThread.java:4627)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at java.lang.reflect.Method.invokeNative(Native Method)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at java.lang.reflect.Method.invoke(Method.java:521)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-28 15:04:08.333: ERROR/AndroidRuntime(12075):     at dalvik.system.NativeStart.main(Native Method)
07-28 15:04:08.341: ERROR/liblog(1207): failed to call dumpstate
  • 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-24T02:57:23+00:00Added an answer on May 24, 2026 at 2:57 am

    Can you right click on Project in Eclipse and the properties and select Android and tell me what is the Project Build Target.

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

Sidebar

Related Questions

So I'm having pretty much exactly the problem described here: http://code.google.com/p/android/issues/detail?id=6191 and until the
I have problem occuring in my application.. Using XML file i am getting geopoints
Having a problem getting a TreeView control to display node images. The code below
I'm getting this problem: PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable
SO I am getting a response from the google translate API's like this: {\responseData\:
I'm having a problem getting Google Maps to display when compiled and run on
Im having problem's adding map markers to gmaps using jquery. Here is my code
Our application uses the MapMaker class from Google collections, and we're getting the exception
I'm creating a dynamic map with the Google Maps API and I'm getting hard
I'm having a problem with getting my Google Maps API key to work. I

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.