Calling activity from library project and including its layout
<p>I have a library project with main activity A and the layout <code>lib_layout.xml</code>. Another project calls the activity A in the main activity B if some condition is met. What can I do, so activity A is called and the <code>lib_layout.xml</code> is included into the layout of activity B.
Normally I would extend activity A and use the include tag, but here A is only called when a condition is met. Do you have any ideas?</p>
