Android Question how to install StateManager

Electrocutioner

Member
Licensed User
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:

Electrocutioner

Member
Licensed User
randomaccessfiles and reflection must be CHECKED
the signature of the sub in original is

B4X:
Sub RestoreState(Activity As Activity, ActivityName As String, ValidPeriodInMinutes As Int) As Boolean
Don Im not sure what you are saying. Are you saying replace the code?
 

Electrocutioner

Member
Licensed User
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
 

asales

Well-Known Member
Licensed User
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.
 

DonManfred

Expert
Licensed User
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
 
Top