Implemented TouchDevice, revised samples for better Android compatibility