Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
walkin
Posts: 52
Registered: ‎11-24-2011
My Carrier: Rogers
Accepted Solution

Parsing string to double on 'French' device

[ Edited ]

Maybe I did not search forum hard enough, but here is strange problem.

When I run this line:

double dValue = Double.parseDouble(str);

on a device with English language everything is OK,

But when I switch language to French  it throws NumberFormatException !?

Any explanations?

OS 6/7

Please use plain text.
Developer
paulkayuk
Posts: 133
Registered: ‎04-30-2010
My Carrier: T-Mobile

Re: Parsing string to double on 'French' device

What is the value/content of str?
Please use plain text.
Regular Contributor
walkin
Posts: 52
Registered: ‎11-24-2011
My Carrier: Rogers

Re: Parsing string to double on 'French' device

Sorry, that was actually not parsing but memory corraption in other place that caused that issue.

Please use plain text.