Support offline activity

Signed-off-by: james <tj1ster@gmail.com>