开发工具:
文件大小: 23mb
下载次数: 0
上传时间: 2017-09-25
详细说明: public class MainActivity extends AppCompatActivity { private List listExcelData=new ArrayList(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); s etContentView(R.layout.activity_main); addDate(); } private void addDate(){ ExcelData data1=new ExcelData("张三", "19","数学","男","大一","123"); ExcelData data2=new ExcelData("李四", "20","语文","女","大二","456"); ExcelData data3=new ExcelData("王五", "21","英语","不明","大三","789"); ExcelData data4=new ExcelData("赵六", "22","化学","不明","大四","135"); ExcelData data5=new ExcelData("阿七", "23","生物","不明","大五","246"); ExcelData data6=new ExcelData("傻八", "24","物理","不明","大六","159"); listExcelData.add(data1); listExcelData.add(data2); listExcelData.add(data3); listExcelData.add(data4); listExcelData.add(data5); listExcelData.add(data6); } public void createExcel(View v) throws FileNotFoundException { File file; File dir = new File(Environment.getExternalStorageDirectory().toString()); Log.e("飞","路径是:"+dir.getAbsolutePath()); file=new File(Environment.getExternalStorageDirectory(),"excel.xls"); if (!dir.exists()){ Log.e("飞","创建文件夹"); dir.mkdirs(); } WritableWorkbook wwb; OutputStream os= null; os = new FileOutputStream(file); ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.