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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:05:16+00:00 2026-05-28T01:05:16+00:00

Dear Android Developers I am getting the following error when I try to request

  • 0

Dear Android Developers

I am getting the following error when I try to request location updates using the android emulator:

01-11 17:48:51.972: ERROR/LocationManagerService(542): requestUpdates got exception:
01-11 17:48:51.972: ERROR/LocationManagerService(542): java.lang.IllegalArgumentException: provider=network
01-11 17:48:51.972: ERROR/LocationManagerService(542):     at com.android.server.LocationManagerService.requestLocationUpdatesLocked(LocationManagerService.java:1000)
01-11 17:48:51.972: ERROR/LocationManagerService(542):     at com.android.server.LocationManagerService.requestLocationUpdates(LocationManagerService.java:968)
01-11 17:48:51.972: ERROR/LocationManagerService(542):     at android.location.ILocationManager$Stub.onTransact(ILocationManager.java:96)
01-11 17:48:51.972: ERROR/LocationManagerService(542):     at android.os.Binder.execTransact(Binder.java:287)
01-11 17:48:51.972: ERROR/LocationManagerService(542):     at dalvik.system.NativeStart.run(Native Method)

I am using this to get the location:

lastlocation = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);

For more information: I am using Android 1.5, minSDK: 3, the emulator is gps enabled, this is my first application: a simple cell phone locator.

  • 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-28T01:05:16+00:00Added an answer on May 28, 2026 at 1:05 am

    I don’t think you can get a network location from the emulator using the Network provider. Try using the GPS provider and then in the DDMS perspective in Eclipse, you can ‘simulate’ a location update by pressing the send button (see below):

    enter image description here

    Hope this helps.

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

Sidebar

Related Questions

Dear Folk's i'm using the following code in order to send the bytes of
Dear Fellow Android Developers! EDIT: Thank you all for your answers. I see from
Dear Android hackers, I am trying to do the following in my Android App:
Dear g++ hackers, I have the following question. When some data of an object
Dear all, I have a select query that currently produces the following results: DoctorName
Dear members of the Stackoverflow community, We are developing a web application using the
Hello dear programmers, I am very new to android application development and for practice
Dear experts, I was trying to dynamically generate DOM elements using JS. I read
dear all..i've a textfield, it using barcode scanner for input data..after scan it shows
Dear iPhone Developers, I am writing a Navigation based iPhone application. I want to

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.