Commit ebec3c09 authored by Edy Thenedy's avatar Edy Thenedy

Created a Listings java file

parent f09c6210
package edu.gmu.srct.bookshare;
import edu.gmu.srct.bookshare.api.BookshareAPI;
import edu.gmu.srct.bookshare.api.Listing;
import edu.gmu.srct.bookshare.api.Seller;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;
import android.widget.Toast;
@TargetApi(17)
public class Listings extends Activity implements OnClickListener,BookshareAPI {
private TextView myText = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.listings);
myText = (TextView) findViewById(R.id.header);
String value = getIntent().getExtras().getString("bookInfoRequest");
/*
try
{
int isbn = Integer.parseInt(value);
}
catch(NumberFormatException e)
{
}
// This line works
//myText.append(value);
*/
} // end onCreate()
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
}
@Override
public Seller getSeller(int id) {
// TODO Auto-generated method stub
return null;
}
@Override
public Listing getListing(int id) {
// TODO Auto-generated method stub
return null;
}
@Override
public int[] getListing(int start, int end) {
// TODO Auto-generated method stub
return null;
}
@Override
public Listing[] getListingByISBN(String isbn) {
// TODO Auto-generated method stub
return null;
}
@Override
public Listing[] getListingByTitle(String title) {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean pushListing(Listing listing) {
// TODO Auto-generated method stub
return false;
}
}
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