Android Question how to install StateManager

Upvote 0
I have installed StateManager as a class Module.

Now when I compile I receive an error on this line
Public Sub RestoreState(Page As Page, PageName As String, ValidPeriodInMinutes As Int) As Boolean

Error description: Unknown type: page
Are you missing a library reference?

I checked off RandomAccessFile and Reflection
 
Last edited:
Upvote 0
at least i would try to replace the declarationline of the sub... yes.

Ok I cut out the code I don't need. The next error I receive is

Error description: Unknown member: dirlibrary
Occurred on line: 16
If File.Exists(File.DirLibrary, SettingsFileName) Then
Word: dirlibrary
 
Upvote 0
What version of StateManager are you using?
I am using the 1.11 version and I don't have this issues.
And there is no "File.DirLibrary" in the 1.11 version.
 
Upvote 0
I am using the 1.11 version and I don't have this issues.
And there is no "File.DirLibrary" in the 1.11 version.
maybe he should tell us which B4A version he is using. And if it is B4A at all. Actually i´m not sure we are talking about B4A :)

And i believe all Methods/Properties of FILE are part of the CORE library
 
Upvote 0
Back
Top