Okay so i have a class called viewList. When the item it long pressed the id is looked up of that item in my SQL database. And starts a new activity. How would i transfer this id that is retrieved on long press, to my new activity so it can intern look up the info.
case R.id.lookup_book:
AdapterContextMenuInfo web =
(AdapterContextMenuInfo)item.getMenuInfo();
mDbHelper.fetchinfo(web.id);
Intent v = new Intent(this, bookLookup.class);
startActivity(v);
I would like to pass the web.id to this activity
public class bookLookup extends Activity {
WebView webView;
private DbAdapter mDbHelper;
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.book_browser);
webView = (WebView)findViewById(R.id.webkit);
}
}