Why does Android dislike to see implementation of the constructor of an activity? -
Why does Android dislike to see implementation of the constructor of an activity? -
my activity contains tabhost , , implemented constructor of activity. @ runtime app crashed ! removed implementation of constructor , app run ! why , when should implement constructor of activity ?
in android, activities initialised scheme through classloader, requiring public non-argument constructor in order initialise object.
normally, never override/add constructor activities in android. if want it, however, must implement public non-argument constructor.
look @ documentation more details how class works: activity
android
Comments
Post a Comment