2011. 6. 14. 11:50
1. read
Properties ini = new Properties();
String mode="";
ini.load(new FileInputStream("/sdcard/init.ini"));
mode=ini.getProperty("version");
2.write
Properties ini = new Properties();
ini.put("version", "default"); // property Add
ini.setProperty("version", "single");
ini.store(new FileOutputStream("/sdcard/FTPTemp/init.ini",true), "Initialize"); //save
'Programming > Android' 카테고리의 다른 글
Android - set pinch zoom in webview / 웹뷰에서 핀치 줌 설정 (0) | 2011.06.15 |
---|---|
Android - Resourece path / 리소스 경로 (0) | 2011.06.14 |
Android - cmd로 수동 apk 생성(예제)/To build apk from the command line(Example)/자동배포 (0) | 2011.06.13 |
Android - load resource animation/ 리소스에 있는 애니메이션 가져오기 (0) | 2011.06.02 |
Android - portrait or landscape hold /화면 고정 시키기 / 회전 잠금 (0) | 2011.06.02 |