Recently I have come across the following syntax in Android:
Intent i = new Intent(getApplicationContext(), SomeActivityClass.class);
Could someone please explain what happens when SomeActivityClass.class is called?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
classis a static class field of each class, of typeClass<?>which represents the type of that specific class. It is often used for instantiating a class by reflection (as in the intent case).i.e. – after:
clazzwill refer to an object of typeClass<?>that represents theSomeActivityClassclass.Links: