Posts

Showing posts from August, 2017

Store and retrieve Android contacts photo

Image
Android default contacts are, basically, a database for store and retrieve phone contacts info. Here a short snippets showing a way to store and retrieve the photo of the contacts. Android contacts store photo in two format, large and thumbnail with two different way for retrieve it.

Block access to the site if javascript is disabled

Image
Majority of modern web sites, especially with responsive feature, make a large use of javascript for allow various objects to be managed correctly in each situation. Sometime can happen user have javascript disabled in the browser and the web site will not work as expected with the result of a bad user experience. Here  a simply solution for advise user about javascript problem and block access to the site until javascript enabled.