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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:22:01+00:00 2026-06-07T17:22:01+00:00

I have an application, which was running perfectly on emulator 2.2 and real device

  • 0

I have an application, which was running perfectly on emulator 2.2 and real device 2.2.2. I decided to update my android version on phone from 2.2.2 do 2.3.4. Everything went fine, but my application suddenly stopped working without any reason. Well, it gets me Unparseable date exception on this line:

String timeOld12Hour = "11:50pm";// for example
Date time = new SimpleDateFormat("hh:mma").parse(timeOld12Hour);

Thats really funny, because i can’t see any error on this line. SImpledateformatter is exactly same format as my date. Whats most strange:

  • it works fine emulator 2.2
  • it works fine emulator 2.3.3
  • it works fine every pc with java i tried today
  • it worked fine on device 2.2.2
  • it doesnt work on device 2.3.4

Where can be problem? I tried few phone restarts, uninstall application, reinstall application, i simple can’t get it working…

  • 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-07T17:22:03+00:00Added an answer on June 7, 2026 at 5:22 pm

    well, i found what was the problem. If add Locale.US to SimpleDateFormatconstructor, like this:

    String timeOld12Hour = "11:50pm";// for example
    Date time = new SimpleDateFormat("hh:mma", Locale.US).parse(timeOld12Hour);
    

    everything goes fine. Thats really funny, I have never heard about something like this 😉 I must read something more about locales, because it looks its very important. Also still can’t understand why locale of my phone changed after Android upgrade…

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

Sidebar

Related Questions

I have a WPF application which uses a JumpList (Recent only). Everything works perfectly
I am developing a android application which is running perfectly in motorola CLIQ(i installed
I have developed an Android application using Eclipse which works perfectly on the Android
I have an android application which works perfectly on an AVD using Android 2.3.3,
I have a Java application which is running as non root mode. My App
I have an application in which I am running a separate thread. Dim thread
I have written a simple web Application which is running(on Tomcat Server) fine on
We have a java application which run as server running on a remote windows
I have a silverlight application which users will be running in various time zones
We have a rather large and complex application written in Java which is running

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.