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 wrote a small app that turns out to be using a lot of
I wrote a simple Sinatra app that generate an image using rmagick from some
I wrote an iPhone app that plays wma stream, using libmms and ffmpeg open
I have an asp.net MVC app that i am working on and I wrote
I wrote some app that using lauot- procce bar and AsyncTask to do some
I have an app that I wrote using C# .NET 4.0 in Visual Studio
I am currently using XCode 3.2.3 and iOS4. I'm working on an app that
i wrote a Delphi 5 app that uses TIdFTP. it's been working great for
I wrote an app that saves the users inputted text, and it ran perfectly

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.