public class SampleActivity extends BaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sample); // Other logic specific to this activity } }In this example, the SampleActivity class extends BaseActivity and inherits its functionalities. The onCreate() method is overridden to set the layout file for this activity and perform other logic specific to this activity. The package library for BaseActivity is likely to be android.app or com.android.activities.