Generic method definition for Android development: