# Why isn't UE 4.8 saving data on Android?

**URL:** <https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816>\
**Category:** Editor Scripting\
**Tags:** savegame, unreal-engine, Android, question\
**Created:** [June 15, 2015, 12:40am UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816 "2015-06-15T00:40:09Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [June 17, 2015, 8:35pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/21 "2015-06-17T20:35:14Z")

</div>

Could you uncheck the “package in an apk file” button, repackage the tappy chicken game, delete the udkgame save folder in device, install the game and send us the results please? (If you take the screenshots of steps I will thank)… I really don’t think it’s solved…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e07795391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e07795391](https://forums.unrealengine.com/u/anonymous_user_e07795391)\
**Post date:** [June 18, 2015, 11:13am UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/22 "2015-06-18T11:13:08Z")

</div>

I’ve SOLVED creating a new project in 4.8 from scratch and copying all assets from the converted project into the new.

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [June 18, 2015, 6:44pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/23 "2015-06-18T18:44:16Z")

</div>

I am looking into this possibility, but I need to double check it with the Android dev when he is free. In the meantime, directly below Bugbuster77 has posted a potential workaround.

Good luck!

---

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [June 18, 2015, 10:08pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/24 "2015-06-18T22:08:50Z")

</div>

Could you uncheck the “package in an apk file” button, repackage your game, delete the udkgame save folder in device, install the game and send us the results please?

---

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [June 18, 2015, 11:05pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/25 "2015-06-18T23:05:36Z")

</div>

I have just done what Bugbuster77 posted… and the problem continues happening (It doesn’t save the game) ☹

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [June 19, 2015, 5:19pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/26 "2015-06-19T17:19:46Z")

</div>

Hi all,

It does appear that packaging the obb outside the apk causes the SaveGame folder to not be automatically generated. To this end, I have put this in as an issue for our developers to check on. For reference, the issue is UE-17385. I will update this thread when I have any information as to its status.

Thanks!

---

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [June 19, 2015, 10:12pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/27 "2015-06-19T22:12:45Z")

</div>

Thanks… but I think I can wait 5 more days (I’m trying to publish a game made just in Blueprint … without C++ 😉

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [June 20, 2015, 3:24pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/28 "2015-06-20T15:24:41Z")

</div>

The UE4Game directory wasn’t being created. There is a fix in master branch of GitHub to AndroidFile:  
(Engine\Source\Runtime\Core\Private\Android\AndroidFile.cpp)

```
	// make sure the base path directory exists (UE4Game and UE4Game/ProjectName)
	FString FileBaseDir = GFilePathBase + FString(FILEBASE_DIRECTORY);
	mkdir(TCHAR_TO_UTF8(*FileBaseDir), 0766);
	mkdir(TCHAR_TO_UTF8(*(FileBaseDir + GAndroidProjectName)), 0766);

```

Add the above to the end of Initialize(IPlatformFile\* Inner, const TCHAR\* CmdLine) function right before the return true. Here is a link to the GitHub commit for this fix, but it will be in 4.8.2 as well:

[https://github.com/EpicGames/UnrealEngine/commit/0b40fd651b712916e95913101e64088d5bc719c7](https://github.com/EpicGames/UnrealEngine/commit/0b40fd651b712916e95913101e64088d5bc719c7)

I also recommend if you use GitHub to also get this important fix for threaded async file reads:

[https://github.com/EpicGames/UnrealEngine/commit/8f98bc9a2049667f41a7fa45ee3fd1ecddd9a134](https://github.com/EpicGames/UnrealEngine/commit/8f98bc9a2049667f41a7fa45ee3fd1ecddd9a134)

---

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [June 25, 2015, 11:35pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/29 "2015-06-25T23:35:15Z")

</div>

Could you please explain why this issue was not solved in this last release?

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [June 26, 2015, 2:13pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/30 "2015-06-26T14:13:23Z")

</div>

For reasons unknown to me it was not included in the 4.8.1 hotfix. There is a prioritization method that support isn’t necessarily privy to. It is fixed, and I’m hoping it is integrated into a subsequent hotfix, but there’s no way that I can ever guarantee what issues will make it into what releases.

If you want to make the case for it to be included (Epic takes feedback from the community pretty seriously), I’d mention it in the forums in either the feedback or the annoucements sections.

There’s always the temp fix that the dev posted above if you are severely blocked by this.

---

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [June 27, 2015, 1:32am UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/31 "2015-06-27T01:32:14Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [July 5, 2015, 9:37pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/32 "2015-07-05T21:37:22Z")

</div>

Hey, wittlief! Could you please specify where I have to put the code of Chris Babcock? I remind you have posted it, but it seems it was deleted… I’m really sick of waiting for a new release with this issue solved…

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [July 6, 2015, 4:02pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/33 "2015-07-06T16:02:25Z")

</div>

hey, he edited the first answer there to provide exact steps of how to apply this fix.

---

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [July 6, 2015, 4:25pm UTC](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816/34 "2015-07-06T16:25:42Z")

</div>

Thank you very much!!! (sorry by bothering you)

[Previous page](https://forums.unrealengine.com/t/why-isnt-ue-4-8-saving-data-on-android/321816.md?page=1)
