java - How to use AppBaseActivity and ActionBarActivity both in MainActivity -


i'm using theme i.e theme.appcompat.light.darkactionbar in application can action bar in main activity.for must extends mainactivity actionbaractivity.and register or unregister activity had created 1 separate class appbaseactivity can close activity @ time of logout. question java doesn't support multiple inheritance how can use these both classes in mainactivity. appreciated.

use multilevel inheritance instead.

extend appbaseactivity base activity actionbaractivity , extend other activity appbaseactivity. believe trick you.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -