add measureactivity.java