[Xamarin/Android]어플 삭제 할 경우 기존 저장된 sqlite 데이타도 초기화 > APP Dev

본문 바로가기

사이트 내 전체검색

APP Dev

[Xamarin/Android]어플 삭제 할 경우 기존 저장된 sqlite 데이타도 초기화

작성일 19-03-09 20:38

페이지 정보

작성자sbLAB 조회 1,954회 댓글 0건

본문

Q) Old data appears in SQLite database when reinstalling app .. why  ?


어플 삭제 할 경우 기존 저장된 sqlite 데이타도 초기화 하기 ==> 자동백업복구옵션 비활성화


AndroidManifest.xml 파일에 아래 옵션 추가 


<application  android:allowBackup="false" />




[설명]

android:allowBackup

Whether to allow the application to participate in the backup and restore infrastructure. If this attribute is set to false, no backup or restore of the application will ever be performed, even by a full-system backup that would otherwise cause all application data to be saved via adb. The default value of this attribute is true.


https://stackoverflow.com/questions/43711590/old-data-appears-in-sqlite-database-when-reinstalling-app 

댓글목록

등록된 댓글이 없습니다.

Copyright © 소유하신 도메인. All rights reserved.
PC 버전으로 보기