Activity Service code + samples.

Activity Service Code and Samples. Tested the samples. Working fine.