Is it possible to get different hashcode from same string on different devices? (i got only one device so i can’t test it) Or android sdk get same int value from same string on different devices? (I already have a case on .net compact fw and .net fw returns different hashcode for same string)
For example:
int hash = "Enter text".hashCode();
hash == 123445564 on Samsung S3
hash == -16644335 on HTC Desire
As long as the hash function remains the same (as far as I know it remains the same in different SDK versions) the result should be the same.
However, if you are getting the strings from
strings.xmland you have localized versions of string, then you may get different hashs for the samegetString(R.string.mystring)Regards,
Luis