package net.idlesoft.android.hubroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Dashboard extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dashboard);

		((Button)findViewById(R.id.btn_dashboard_newsfeed)).setOnClickListener(new OnClickListener() {
			public void onClick(View v)
			{
				startActivity(new Intent(Dashboard.this, NewsFeed.class));
			}
		});
	}
}

package net.idlesoft.android.hubroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class Dashboard extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dashboard);

		((ImageButton)findViewById(R.id.btn_search)).setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                startActivity(new Intent(Dashboard.this, Search.class));
            }
        });
		((Button)findViewById(R.id.btn_dashboard_newsfeed)).setOnClickListener(new OnClickListener() {
			public void onClick(View v)
			{
				startActivity(new Intent(Dashboard.this, NewsFeed.class));
			}
		});
	}
}

Add code to handle the search button
Add code to handle the search button

Signed-off-by: Eddie Ringle <bacc1c505cb1756c59242c0a8ee25cd990a210e9@eringle.net>
