Add apply activity code.
add for apply activity
Add for apply activity.