How to dynamic create muti instance activity

@thinkdoom refer the below example which might help you.