The difference between an Android View and an Activity is that a view is used to show data on the screen without having any code. On the other hand, an activity is a program that can be executed and has its own life cycle.
An activity will have a main thread where all the work happens, while a view will have its own thread.
In order to create an activity in Android Studio, go to File -> New -> Activity -> Empty Activity
The code for this class will look like this:
class MainActivity extends AppCompatActivity {
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }