zeal4android
for Android developers
Thursday, January 5, 2012
Android String to long
Android from String to long
String sNum =
"99999999"
;
long
lNum = 0;
try
{
l
Num = Long.
parseLong
(sNum);
}
catch
(NumberFormatException nfe) {
Log.
e
(
"TAG"
,
"Could not parse "
+ nfe);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment