Gallery g = (Gallery)findViewById(R.id.secondButton)
Gallery g = (Gallery)findViewById(R.id.secondButton);
@SuppressWarnings("deprecation")
@SuppressWarnings("deprecation")
Gallery g = (Gallery)findViewById(R.id.secondButton);本来是这样的
删除Gallery g = (Gallery)findViewById(R.id.secondButton);这个后,就报这个错,
直接又删了 @SuppressWarnings("deprecation")即可