hi
Here is the example on how to create task in plugin. change that entity name to your custom actvity name.
http://mscrmshop.blogspot.com/2010/10/crm-2011-plugin-tutorial.html
I hope this helps.