@Override protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    Button bt_show_lynx_activity = (Button) findViewById(R.id.bt_show_lynx_activity);
    bt_show_lynx_activity.setOnClickListener(new View.OnClickListener() {

      @Override public void onClick(View v) {
        openLynxActivity();
      }
    });

    final Button bt_show_lynx_view = (Button) findViewById(R.id.bt_show_lynx_view);
    bt_show_lynx_view.setOnClickListener(new View.OnClickListener() {
      @Override public void onClick(View v) {
        final View lynxView = findViewById(R.id.lynx_view);
        lynxView.setVisibility(View.VISIBLE);
      }
    });

    generateFiveRandomTracesPerSecond();
  }
Activity created to show how to use Lynx.

@author Pedro Vicente Gomez Sanchez.
sample/src/main/java/com/github/pedrovgs/sample/MainActivity.java