How does the electric gate control work, is it IR or RF, like it uses a remote zapper or an RF tag something? Because almost certainly you're going to need a hardware interface to your Android device, so it can send the "open" or "close" signals to the gate. If the gate is IR controlled, possibly you could use an IR blaster?