{"id":3186,"date":"2021-11-02T15:00:49","date_gmt":"2021-11-02T06:00:49","guid":{"rendered":"http:\/\/kuuur.net\/?p=3186"},"modified":"2021-11-02T16:54:36","modified_gmt":"2021-11-02T07:54:36","slug":"fullbackuponly","status":"publish","type":"post","link":"https:\/\/kuuur.net\/?p=3186","title":{"rendered":"Android\u30a2\u30d7\u30ea\uff1aandroid:fullBackupContent\u306e\u5ba3\u8a00"},"content":{"rendered":"<p>Android Studio\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>On SDK version 23 and up, your app data will be automatically backed up and restored on app install.<br \/>\nConsider adding the attribute android:fullBackupContent to specify an @xml resource which configures which files to backup, or just set android:fullBackupOnly=true.<\/p>\n<p>SDK23\uff08Android6.0\uff09\u4ee5\u964d\u306b\u306a\u308b\u3068\u3001\u81ea\u52d5\u7684\u306b\u30a2\u30d7\u30ea\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3059\u308b\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u3066\u304a\u308a\u3001\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u3001android:fullBackupContent\u5c5e\u6027\u3092\u8ffd\u52a0\u3057\u3066\u307b\u3057\u3044\u3001\u3068\u3044\u3046\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306f\u3001\u30a2\u30d7\u30ea\u5185\u306e\u30e6\u30fc\u30b6\u30c7\u30fc\u30bf\u3067\u3001\u30e6\u30fc\u30b6\u306eGoogle\u30c9\u30e9\u30a4\u30d6\u306b25MB\u3092\u4e0a\u9650\u306b\u4fdd\u5b58\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u306e\u3088\u3046\u3067\u3059\uff08\u3053\u306e\u30c7\u30fc\u30bf\u5bb9\u91cf\u306fGoogle\u30c9\u30e9\u30a4\u30d6\u306e\u500b\u4eba\u306e\u4f7f\u7528\u91cf\u306b\u306f\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u306a\u3044\u305d\u3046\u3067\u3059\uff09\u3002<\/p>\n<h2>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3057\u306a\u3044<\/h2>\n<p>AndroidManifest.xml\u306eapplication\u306bandroid:fullBackupContent=&#8221;@xml\/backup_rules&#8221;\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\u3055\u3089\u306b\u305d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30eb\u30fc\u30eb\u306e\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\uff08res\/xml\/backup_rules.xml\uff09\u306e\u8a2d\u5b9a\u306a\u3069\u304c\u5fc5\u8981\u306b\u306a\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3057\u306a\u3044\u8a2d\u5b9a\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3057\u306a\u3044\u5834\u5408\u306b\u306f\u3001android:allowBackup=&#8221;false&#8221;\u306b\u3059\u308c\u3070\u3088\u304f\u3001\u8b66\u544a\u3082\u51fa\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"source\">\n<pre>&lt;application\r\n    android:allowBackup=\"false\"\r\n    android:icon=\"@mipmap\/ic_launcher\"\r\n    android:label=\"@string\/app_name\"\r\n    android:roundIcon=\"@mipmap\/ic_launcher_round\"\r\n    android:supportsRtl=\"true\"\r\n    android:theme=\"@style\/AppTheme\"\r\n    android:hardwareAccelerated=\"false\"\r\n    android:largeHeap=\"true\"\r\n    tools:ignore=\"LockedOrientationActivity\"\r\n    &gt;<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Android Studio\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002 On SDK version 23 and up, your app data will be automaticall&#8230;<span class=\"continue\"><a href=\"https:\/\/kuuur.net\/?p=3186\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-3186","post","type-post","status-publish","format-standard","hentry","category-android"],"views":3956,"_links":{"self":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts\/3186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3186"}],"version-history":[{"count":2,"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts\/3186\/revisions"}],"predecessor-version":[{"id":3188,"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts\/3186\/revisions\/3188"}],"wp:attachment":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}