wahyuway Member Licensed User Longtime User Jun 28, 2014 #1 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.
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 Jun 28, 2014 #2 Which line gives the error and what are you assigning it's value to? Upvote 0
wahyuway Member Licensed User Longtime User Jun 28, 2014 #3 Solved. The code above works properly. The returning value by img.FrameCount was empty, i've debugged my code and fixed. Thanks Upvote 0
Solved. The code above works properly. The returning value by img.FrameCount was empty, i've debugged my code and fixed. Thanks