Prepare the rice. Place the rice in a deep saucepan and cover with cold water. Place on high heat and wait until it boils. Add salt and reduce heat to low. Cover and cook for 20 minutes until all the water has evaporated.
Cook the shrimp. Heat the vegetable oil in a frying pan over medium heat. Fry the egg for 20 seconds, stirring. Add the boiled rice, stir and fry for 1 minute. Put the onion and shrimp in the same pan. Stir. Cover with a lid, reduce the heat and cook for 5 minutes. Pour in the soy sauce, stir and remove from heat. Add fresh tomatoes.