Android Application Development Tutorial - 20 - Starting an Activity with a Class Object
Visit my website at https://www.thenewboston.com/ for all of my videos and tutorials! Have questions or looking for source code? Check out the forum at ...
+billyblackburn87 Using intent you can do things in an app, like invoke some activity like change the view,by specifying activity name(as in explicit intent) or by just asking the intent to perform some action (as in an implicit intent). In this video we specify the action the intent has to perform and pass a specific class to it, i.e., startingpoint.java hence it becomes an explicit intent.
So the Intent's constructor takes a context, and a class: new
Intent(constructor, ourClass);
Could someone explain what the context is again? In this example we use
Menu.this, but why is it needed, and what exactly is it?
you keep on saying that it's something new, something advanced and that you
are considering the listener as new in programming. dude you're wasting a
lot of time saying these words. just get to the point and explain only
important facts like why you are using those methods or why did a class
inherit this parent class. (-_-)
Im getting a error when i write:
Class ourClass = Class.forName("com.thenewboston.startingPoint");
It says "multiple markers at this line, plus recommends to insert a
"try/catch"
Anyone has an idea what I am doing wrong?