I am trying to send a bundle from one activity to another. When I load the bundle in the recieving activity all the information seems to be null. Here is some code:
Bundle b = new Bundle();
b = toBundle(app.getHotelList().get(position));
intent.putExtras(b);
startActivity(intent);
//In your next activity
//Create another Bundle object and get the string by name
Bundle bundle = getIntent().getExtras();
if(bundle!=null){
String hotelName = bundle.getString("hotelname");
}