data
濯君
求知,内敛,有趣,勤静
展开
-
由文件的路径,写入数据
private void writeData(String data){ OutputStreamWriter osw = null; try{ osw = new OutputStreamWriter(new FileOutputStream(new File(path)));//path:文件需写入的路径 osw.原创 2016-09-08 14:15:31 · 372 阅读 · 0 评论 -
从activity2传数据回acvitity1
1.从activity1到activity2: Intent i = new Intent(this, Activity2.class); startActivityForResult(i, 1); 2.activity2设置返回的数据: Intent intent = new Intent(); intent.putExtra("edittextvalue","value_here")原创 2016-09-08 14:41:35 · 514 阅读 · 0 评论