I have a method called hostPhoto(); it basically uploads an image to a site and retrieves a link.
I then have an other method to post the link to a website.
I'm assuming you are (or should be) using a separate thread to asynchronously accomplish this action.
You need to place the post() in a callback that is called when hostPhoto() is complete.
Generally I've done this with AsyncTask with Android...
This provides you the callback onPostExecute() that you can do your post() inside.