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.

upload_2013-12-20_22-36-36.png


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

[UPDATE]

That 1 seems to be a String!
upload_2013-12-20_23-13-2.png


although I have used:
upload_2013-12-20_23-14-8.png
 
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
Top