Wait UNtil a element is displayed- Java_Appium

My application will download some books from internet and only then it will display the actual app.

So how to wait until the books are downloaded.

  1. Any sample code for wait function ?
  2. Do appium driver has default wait functions?

Additionally, i notice in appium console log that every time the application is uninstalled and reinstalled. I have to prevent doing this ,how to do this?

Note:I am using selenium jar 2.44 and appium java_client.2.x *any changes to be done in the jars?

Help is much appreciated.

http://goo.gl/gRmZMK