Commit e39a9775 authored by Edy Thenedy's avatar Edy Thenedy

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

parent f0d600c2
package edu.gmu.srct.bookshare;
import android.app.Activity;
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()) {
case R.id.search_button:
// What happens when the "Search" button is clicked
//Intent i = new Intent(this, .class);
//startActivity(i);
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());
startActivity(i);
//Toast.makeText(getApplicationContext(), "Search Button", Toast.LENGTH_SHORT).show();
break;
......
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