日期:2014-05-16  浏览次数:20382 次

Gallery g = (Gallery)findViewById(R.id.secondButton);
        @SuppressWarnings("deprecation")

        Gallery g = (Gallery)findViewById(R.id.secondButton);本来是这样的

删除Gallery g = (Gallery)findViewById(R.id.secondButton);这个后,就报这个错,

直接又删了  @SuppressWarnings("deprecation")即可