Chop onion, ginger, garlic, coriander leaves and mint leaves finely.
In a thick bottomed pan (kadai) add the oil and the pineapple pieces. Fry for a few minutes. Add ginger and garlic and fry for few seconds. Add onion and fry till it become transparent. Add chopped coriander and mint leaves and stir well. Add red chilli powder and salt. Mix it well. Sprinkle two or three handful of water. Close with a lid and cook on low flame for few seconds. Open the lid and stir it well till all the water is absorbed. Add cooked rice and sprinkle pepper powder. Keep the stove on high and stir it just for ten counts. Remove. Add lemon juice and mix it well. Garnish with coriander leaves.