You have to create static method inside ShowColorActivity to generate Intent to avoid code duplication.