If you want to send small amounts of data to a server (e.g. an id) you can do it via a HTTP GET (in other words, in the URL).
A practical guide to Android development. Learn to create Android programs using Java, and create the app of your dreams! Get complete courses at http://courses.caveofprogramming.com