S shashkiranr Active Member Licensed User Longtime User Feb 20, 2015 #1 Hi All, I am trying to save the generated key from key generator in a random access file. when i retrieve the key its coming as null. Any idea how to save and retrieve keys from random access file? Regards, SK
Hi All, I am trying to save the generated key from key generator in a random access file. when i retrieve the key its coming as null. Any idea how to save and retrieve keys from random access file? Regards, SK
Peter Simpson Expert Licensed User Longtime User Feb 21, 2015 #2 Hello, Please post your code here. It sounds like either a missed key or a spelling mistake. I take it that you've read this post https://www.b4x.com/android/forum/t...-with-randomaccessfile-library.11565/#content. Upvote 0
Hello, Please post your code here. It sounds like either a missed key or a spelling mistake. I take it that you've read this post https://www.b4x.com/android/forum/t...-with-randomaccessfile-library.11565/#content.
Erel B4X founder Staff member Licensed User Longtime User Feb 22, 2015 #3 Why don't you use KeyValueStore class? Upvote 0
S shashkiranr Active Member Licensed User Longtime User Feb 22, 2015 #4 Hi Erel and Peter, Thank you for your reply. I am using the keyvalueStore class. I corrected my mistake. I was not saving the key but was saving the key generator as a whole. I corrected it and now it is retrieving from the randomaccess file. Regards, SK Upvote 0
Hi Erel and Peter, Thank you for your reply. I am using the keyvalueStore class. I corrected my mistake. I was not saving the key but was saving the key generator as a whole. I corrected it and now it is retrieving from the randomaccess file. Regards, SK