Commit e39a9775 authored by Edy Thenedy's avatar Edy Thenedy
Browse files

Add a line to submit information from the search page to another page

parent f0d600c2
package edu.gmu.srct.bookshare;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
......@@ -35,9 +36,11 @@ public class Search extends Activity implements OnClickListener {
switch(v.getId()) {
// What happens when the "Search" button is clicked
//Intent i = new Intent(this, .class);
Toast.makeText(getApplicationContext(), "Search Button", Toast.LENGTH_SHORT).show();
// is to bring the user to another page that displays the picture, the author, and the seller information
Intent i = new Intent(this, Listings.class);
i.putExtra("bookInfoRequest", search.getText().toString().trim());
//Toast.makeText(getApplicationContext(), "Search Button", Toast.LENGTH_SHORT).show();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment