I'm working on a code as a reference and encountered this Intent call: Intent(getApplicationContext(), secondActivity.class)
I got baffled because in my projects I only use: Intent(".mYSecondActivity")
I tried removing getApplicationContext() and changed it to Intent(".secondActivity")' in which the name is registered in the manifest. I run the application and Forced Closed. What is the significance of getApplicationContext()?
secondActivity.class is coded to retrieve data from a PHP MYSQL database.