FileNotfoundException when trying to checkin Foursquare using Android

view story

http://stackoverflow.com – I tried looking for answers for this since last few days with no luck, Even some of the stackoverflow answers did not help. I am trying to checkin a user after receiving his UserToken via Android. I get a FileNotfoundException at getInputStream(), non authenticated APIs like "https://api.foursquare.com/v2/venues/categories" work well. Am i missing something? URL url = new URL("https://api.foursquare.com/v2/checkins/add?oauth_token="+token); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.addRequestProperty("venueid","12238"); conn.setDoInput(true); (HowTos)