1 package com.android.eventlib.tests.testapp; 2 3 import android.app.Activity; 4 5 import com.android.eventlib.events.CustomEvent; 6 7 /** 8 * An {@link Activity} which, when resumed, logs a {@link CustomEvent} with the 9 * passed in tag and data. 10 */ 11 public class EventLoggingActivity extends Activity { 12 13 @Override onResume()14 protected void onResume() { 15 super.onResume(); 16 17 CustomEvent.logger(this) 18 .setTag(getIntent().getStringExtra("TAG")) 19 .setData(getIntent().getStringExtra("DATA")) 20 .log(); 21 } 22 }