Setting device specifications in activity