The Gameshark code to obtain the Rare Candy item in Pokemon Emerald is 82005274 0044. Entering this code will add Rare Candy to the player's inventory. The master code for Pokemon Emerald must be entered before other any Gameshark codes will work.
Some Gameboy Advance emulators for computers and mobile devices also support Gameshark codes. How to enter codes in an emulator varies depending on the software used; the documentation files for each emulator outline which types of codes work and how to enter them. These codes require a Gameshark device or an emulator compatible with Gameshark codes to function.