This is very simple code to create thumbnail in android on run time.

🙂