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; package edu.gmu.srct.bookshare;
import android.app.Activity; import android.app.Activity;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
...@@ -35,9 +36,11 @@ public class Search extends Activity implements OnClickListener { ...@@ -35,9 +36,11 @@ public class Search extends Activity implements OnClickListener {
switch(v.getId()) { switch(v.getId()) {
case R.id.search_button: case R.id.search_button:
// What happens when the "Search" button is clicked // What happens when the "Search" button is clicked
//Intent i = new Intent(this, .class); // is to bring the user to another page that displays the picture, the author, and the seller information
//startActivity(i); Intent i = new Intent(this, Listings.class);
Toast.makeText(getApplicationContext(), "Search Button", Toast.LENGTH_SHORT).show(); i.putExtra("bookInfoRequest", search.getText().toString().trim());
startActivity(i);
//Toast.makeText(getApplicationContext(), "Search Button", Toast.LENGTH_SHORT).show();
break; 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