first create function, it can insert an activity into the application