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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -