Added an activity when dragging and dropping resource.