Android Question Invalid double

wahyuway

Member
Licensed User
Longtime User
Hi,

i use shared preference to save some Int value

img.FrameCount return int value

B4X:
    manager.SetString("frameCount", img.FrameCount)
    manager.SetString("frame", 0)

And i call the value with
B4X:
manager.GetString("frameCount")
manager.GetString("frame")

But i get force close and the Invalid Double error warning.

I thought it maybe trouble with conversion thing, i still new to this. Any help appreciate.

Thanks.
 

stevel05

Expert
Licensed User
Longtime User
Which line gives the error and what are you assigning it's value to?
 
Upvote 0

wahyuway

Member
Licensed User
Longtime User
Solved. The code above works properly.
The returning value by img.FrameCount was empty, i've debugged my code and fixed.

Thanks
 
Upvote 0
Top