Smartphone Devices in Smart Environments: Ambient Assisted Living Approach for Elderly People