 <p>The Android Open Source Project is your friend. You can make your own build of the stock Android Gallery app and implement this feature yourself.</p> <p>Have fun.</p> <p><a href="http://source.android.com/source/downloading.html" rel="nofollow">http://source.android.com/source/downloading.html</a></p>