Its amazing how "need" leads to innovation.
After the pen, Now the problem is How to make smartphones for space. How exactly will you make a smartphone, and all of its sensors like accelerometer work in space ?
The accelerometer should work fine in space? It measures acceleration, it's not like acceleration stops outside the atmosphere
The orientation sensor probably works less well, though. Probably just lock orientation on the ground before you go up.
The orientation sensor is the accelerometer. You know which side is up because you get 1 g of acceleration downwards. At least on Earth.
That's an interesting thought: what orientation will your screen take in microgravity? Will it stick on the last time it saw ~1 g, or will it flip randomly from one to another, or will it just go with "whatever has the highest acceleration", meaning that pretty much any motion of the phone would change orientation.