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
Developer
Posts: 52
Registered: ‎11-24-2011
My Device: Bold 9930
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

Developer
Posts: 133
Registered: ‎04-30-2010
My Device: Curve 8520
My Carrier: T-Mobile

Re: Parsing string to double on 'French' device

What is the value/content of str?
Developer
Posts: 52
Registered: ‎11-24-2011
My Device: Bold 9930
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.