By that token, VHS and Betamax both had the "exact same format" of magnetic tape in plastic boxes. Their similarities didn't stop one from driving the other out of the consumer market.
Personally, I suspect that Apple has lots of time before Android chokes off the smartphone market, and even longer in the tablet space. But eventually, the commodity-hardware producers are going to do to those devices what Compaq et al did for PCs; Apple will have to decide between marketshare and margin, and I suspect they'll choose margin even if it makes them decreasingly relevant. But by that point maybe they can invent some new niche.
Personally, I suspect that Apple has lots of time before Android chokes off the smartphone market, and even longer in the tablet space. But eventually, the commodity-hardware producers are going to do to those devices what Compaq et al did for PCs; Apple will have to decide between marketshare and margin, and I suspect they'll choose margin even if it makes them decreasingly relevant. But by that point maybe they can invent some new niche.