Android Question how to install StateManager

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Electrocutioner

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

Electrocutioner

Member
Licensed User
Longtime 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?
 
Upvote 0

Electrocutioner

Member
Licensed User
Longtime 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
 
Upvote 0

asales

Expert
Licensed User
Longtime 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.
 
Upvote 0

DonManfred

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