Answer the question
In order to leave comments, you need to log in
android how to access MainActivity from another class?
Good afternoon!
Tell me how to access the MainActivity element from another class? There are two files A.class and B.class.
A class
public class MainActivity {
...
Bclas B= new Bclas ();
TextView TV;
...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question