After knowing a guy for some time (…which can vary, depending on how hard a guy may be trying to hide his sexuality, or not), I can usually tell whether he has the inclination to have sex with another guy or not. Now, whether or not that guy is ready, or willing, to admit that to himself… is another story entirely.
Case in point: I knew a guy on my job several years ago who went out of his way to present himself as a ladies man, but I suspected his performance was a front. He would blatantly deny any allegations of being the least bit gay (…even when no one was asking, lol). Long story short, several years later, I found his web accounts on several well known sex sites (XTube, Vine, Chaturbate, Tumblr) that dated back to the time that we worked together, with videos of him masturbating, and lusting after other males (no women anywhere on his list of "favorites" or stated interests, just lots of young guys jerking off and fucking). It was also clear by the videos on his favorites list that he had a big sperm fetish in particular, lol. He thought he was being anonymous on these websites that I found him on, but there were other indicators, that he overlooked, that gave away his identity (…to anyone that knew a few critical details about him beforehand), despite the fact he was always careful not to show his face. Still, I was able to identify him (…and his true nature), with 100% certainty. The man was NOT str8, and I detected this despite his denials, and long before coming across any critical evidence that supported my suspicions.
That's just one example, there have been many others in my experience. Ironically, it's usually some GOOD trait that tips me off that a guy may be gay. Too bad so many men (who may otherwise appear to be heterosexual) are ashamed of their attraction to other men. I blame the lack of positive, masculine, gay role models in the media, and the way homosexuality is still generally frowned upon in modern society, despite the incredible progress that has been made regarding LGBT issues in recent years.
Bottom line in my opinion, being able to tell if another guy is gay or not serves little purpose if the guy is Hell-bent on being in denial (…even if he secretly knows that he loves COCK).