A California man who purposefully set a homeless man on fire and took pictures of the incident while it was happening has been charged with attempted murder.