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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -