How do you activate mystery gift if im using a phone?

In Emerald ( Non Japanese versions) Fire Red and Leaf Green, you go to the Pokemart and answer the questionaire just below the chashier with LINK TOGETHER WITH ALL. The Mystery Gift feature is not available in Ruby or Sapphire.