Android Question Map keys - unsolvable [solved - manner of speaking]

LucaMs

Expert
Licensed User
Longtime User
I am attaching a screenshot that explains the problem.

A map that does not seem to contain a given key, instead it exists!
Mouse (not visible) on the variable mPrefMap clearly shows the contents of the map.

I also used an Int in the Put statement; the key is not defined as String.



I can't upload the project: it is too big and contains secrets of State

[UPDATE]

That 1 seems to be a String!


although I have used:
 
Last edited:

derez

Expert
Licensed User
Longtime User
The mouse shows the content of the map.
You can see from the log that the value of PrefId is 1 and the content of the map is 90 and 11, hence it goes to false in ContainsKey.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…