Intent intent=new Intent(Test1.this,NewActivity.class);
intent.putExtra("photo",(byte[]) maplist.get(location).get("photo"));
startActivity(intent);
System.out.println(" maplist.get(location)."+ maplist.get(location).get("photo"));
dismissPopueWindow();
我打印出来的都是字节数组,但是一跳转就提示我空指针
我一看是byte【】 这个为空,所以我在这里强制转换了一下,就OK了