class. A question about using Application class.
If a class extends Application class, such as public class Demo extends Application.
If i then try to create an object of the class in an Activity class: Demo demo = getApplicationcontext(); Why is this a ClassCastException?
type cast it particular activity u r in
Обсуждают сегодня