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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:26:23+00:00 2026-06-15T05:26:23+00:00

I had recently released an Android game in google play and I received a

  • 0

I had recently released an Android game in google play and I received a crash report of this NumberFormatException

I even pin pointed the code from which it is coming from.. But the thing which concerns me the most is the exception is not being thrown in any of the devices i have tested (and i have tested it in many devices)..

I have a string file arranged like this…
“10.48,1.6,90.0,1.155,1.73” where each float is separated by a comma… I don’t know why this weird exception has occurred for the user of my app 🙁

Here is the code which i am using to parse from the file

 while(j<line.length())
        {
            if(line.charAt(j) == ',')
            {
                endingPoint = j;
                planetList[i].add(Float.valueOf(line.substring(startingPoint, endingPoint)));
                startingPoint = j+1;
            }
            else if(line.charAt(j) == 's')
            {
                i++;
                startingPoint = j+1;
            }
            j++;
        }

and here is the line which is throwing the exception…

cam = new Camera(Float.valueOf(df.format(worldWidth)),fourPointEightFixer);

HERE IS THE STACK TRACE THE KIND USER OF MY APP SENT:

java.lang.NumberFormatException
at  org.apache.harmony.luni.util.FloatingPointParser.parseFltImpl(Native Method) 
at org.apache.harmony.luni.util.FloatingPointParser.parseFloat(FloatingPointParser.java:321) 
at java.lang.Float.parseFloat(Float.java:323) 
at java.lang.Float.valueOf(Float.java:362) 
at com.OnMyOwn.Game.WackyGravity.<init>(WackyGravity.java:97) 
at com.OnMyOwn.Game.LevelChooserMod.initiateGame(LevelChooserMod.java:550) 
at com.OnMyOwn.Game.LevelChooserMod.onButtonTouchUp(LevelChooserMod.java:576) 
at com.OnMyOwn.Game.LevelChooserMod.update(LevelChooserMod.java:384) 
at com.OnMyOwn.framework.impl.GLGame.onDrawFrame(GLGame.java:165) 
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1363) 
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
  • 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-15T05:26:24+00:00Added an answer on June 15, 2026 at 5:26 am

    This issue is caused by language so catch this exception in case of “.” and replace this with comma “,” if you are using pattern like this “##.###”

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

Sidebar

Related Questions

Microsoft recently released to preview Azure web sites. I had been hoping that this
I recently released a game on the Android market. It seems to be working
I had recently (and unfortunately) uninstalled the google chrome browser from my computer -while
I recently had a similar thread about this, but now I need to animate
I recently had the task of adding a barcode onto a SSRS report without
Recently, we had released an app. Before we releasing, we tested it on Samsung
We had an incident recently where some code got released to live that was
I've recently had a crash concerning a selector not being found when a notification
We recently released an android application that pulls information from an external server. Last
Here's a problem I've had recently that just HAS to be a common pain

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.