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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:56:10+00:00 2026-05-20T18:56:10+00:00

I wrote an app that plots my position on the google map API using

  • 0

I wrote an app that plots my position on the google map API using LocationManager …

It was working perfectly on my device. I turned off my device (switched off) and closed my Eclipse IDE …

After I started my app again later, the app says ” THe app stopped unexpectedly” and I had to force close …

I don’t know what the problem is …!!

I tried running it from the IDE and the same problem …

BUT I shared the code with some friends before it crashed and they were running it using the same Google map API key /

Does anyone know what’s causing the error … (Error is Fatal Exception : Main)

A part of code that may be of importance…

try{

         int longTemp = (int)(lastKnownLoc.getLongitude()* 1000000);
         int latTemp = (int)(lastKnownLoc.getLatitude() * 1000000);
         gp =  new GeoPoint(latTemp, longTemp);

}
catch (Exception e)
{

}

I need help asap .

  • 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-20T18:56:10+00:00Added an answer on May 20, 2026 at 6:56 pm

    Your lastKnownLoc may be null.
    You need to check if there is a LastKnownLocation before use it

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

Sidebar

Related Questions

I have a simple Google App Engine app, that I wrote using ordinary strings.
I have an app that I wrote using C# .NET 4.0 in Visual Studio
I am learning Swing and wrote an app that lets user select an image
I recently wrote a quick VB.NET app that injects a DLL into a running
I want to write an app that takes in a model filename via cmd
Anyone know if it is possible to write an app that uses the Java
I'd like to write a Silverlight app that has 2 or more browser windows
I'm trying to write a small app that monitors how much power is left
I am trying to write a console app that simply lists the number of
I'm about to write a little GUI app that will sit in the system

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.