반응형
Encryption Wrapper for Android SharedPreferences
프리퍼런스 관련 래핑 클래스를 찾다보니 암호화 기능까지 잘 정리된 클래스인듯...
http://www.codeproject.com/Articles/549119/Encryption-Wrapper-for-Android-SharedPreferences
Using the code
As you may already know, there are 3 methods to initialize a SharedPreferences object:
- Context.getSharedPreferences(String name, int mode)
- Activity.getPreferences(int mode)
- PreferenceManager.getDefaultSharedPreferences(Context context)
The class in this article accepts a Context object and uses the 3rd approach internally, so instead of the above you should do the following (where this
is your app's Activity, Service, etc.):
..
반응형
'Programming > Android' 카테고리의 다른 글
[android] Custom MediaPlayerControl 처리 예 (0) | 2014.02.18 |
---|---|
파일명 소문자로 일괄 변경 배치 (0) | 2013.12.17 |
안드로이드(Android) 프레임 애니메이션 (0) | 2013.12.11 |
Bitmap Drawable 변환 (0) | 2013.12.11 |
gridview click 이벤트 onItemClick 작동 오류 (0) | 2013.12.07 |