For example
Intent intent = new Intent(this, SecondActivity.class);
eclipse error: The method setClass(Context, Class) in the type
Intent is not applicable for the arguments (FirstActivity.ClickEvent,
Class)
Intent intent = new Intent(FirstActivity.this, SecondActivity.class);
But that will be correct.
Anybody can explain the difference between those two ?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…