Skip to content

读取非初始化目录下的文件时,真正读取的文件名有问题,这是Android遗留的问题,为什么鸿蒙Next上也有此问题? #1378

Closed Answered by lingol
peerless2012 asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I will try to explain it again. When you "做迁移" from the "备份恢复目录", you

  1. calc the root directory of MMKV inside the "备份恢复目录",
  2. call MMKV.restoreAllFromDirectory("备份恢复目录/xxxx/mmkv")
  3. finally, start using MMKV from your default directory in your new HarmonyOS NEXT App.

Understand?

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@lingol
Comment options

@peerless2012
Comment options

@lingol
Comment options

Answer selected by lingol
@peerless2012
Comment options

Comment options

You must be logged in to vote
4 replies
@lingol
Comment options

@peerless2012
Comment options

@lingol
Comment options

@peerless2012
Comment options

Comment options

You must be logged in to vote
1 reply
@lingol
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants