package com.maxiee.attitude.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.maxiee.attitude.R;

/**
 * Created by maxiee on 15-6-13.
 */
public class EventDetailActivity extends AppCompatActivity {

    public static final String EXTRA_NAME = "id";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_event_detail);
    }
}

package com.maxiee.attitude.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.widget.TextView;

import com.maxiee.attitude.R;
import com.maxiee.attitude.database.api.GetOneEventApi;
import com.maxiee.attitude.model.Event;
import com.maxiee.attitude.ui.adapter.ThoughtTimeaxisAdapter;

import org.json.JSONException;

/**
 * Created by maxiee on 15-6-13.
 */
public class EventDetailActivity extends AppCompatActivity {

    private Event mEvent;

    private TextView mTvEvent;
    private RecyclerView mRecyclerView;

    public static final String EXTRA_NAME = "id";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_event_detail);

        Intent intent = getIntent();
        final int id = intent.getIntExtra(EXTRA_NAME, -1);

        final Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        mTvEvent = (TextView) findViewById(R.id.tv_event);
        mRecyclerView = (RecyclerView) findViewById(R.id.recyclerview);

        try {
            mEvent =  new GetOneEventApi(this, id).exec();
            mTvEvent.setText(mEvent.getmEvent());
            mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
            mRecyclerView.setAdapter(new ThoughtTimeaxisAdapter(mEvent.getmThoughts()));
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
}

read DB to fetch Event details and update UI.