C cambol Active Member Licensed User Longtime User Dec 11, 2019 #1 How to code on android like IOS Code: pp.KeyChainPut("uid",ac.GetDeviceUID) pp.KeyChainGet("uid")
walterf25 Expert Licensed User Longtime User Dec 11, 2019 #2 cambol said: How to code on android like IOS Code: pp.KeyChainPut("uid",ac.GetDeviceUID) pp.KeyChainGet("uid") Click to expand... Use a Map object. Code: Dim pp as Map pp.Initiallize pp.Put("uid", ac.GetDeviceUID) dim uid as String = pp.Get("uid") Walter Upvote 0
cambol said: How to code on android like IOS Code: pp.KeyChainPut("uid",ac.GetDeviceUID) pp.KeyChainGet("uid") Click to expand... Use a Map object. Code: Dim pp as Map pp.Initiallize pp.Put("uid", ac.GetDeviceUID) dim uid as String = pp.Get("uid") Walter
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2019 #3 There is no identical feature in Android. Do you need it to store data that is not deleted when the app is uninstalled? Upvote 0
There is no identical feature in Android. Do you need it to store data that is not deleted when the app is uninstalled?
walterf25 Expert Licensed User Longtime User Dec 12, 2019 #4 Erel said: There is no identical feature in Android. Do you need it to store data that is not deleted when the app is uninstalled? Click to expand... Did I misunderstand the question? Upvote 0
Erel said: There is no identical feature in Android. Do you need it to store data that is not deleted when the app is uninstalled? Click to expand... Did I misunderstand the question?
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2019 #5 Yes. He is not asking about Map. He is asking about iOS Keychain feature. This is a global place that can be used to store information. Upvote 0
Yes. He is not asking about Map. He is asking about iOS Keychain feature. This is a global place that can be used to store information.
C cambol Active Member Licensed User Longtime User Dec 12, 2019 #6 after restart app . pp.Get("uid") get NULL I need it to store data that is not deleted when the app is uninstalled . Upvote 0
after restart app . pp.Get("uid") get NULL I need it to store data that is not deleted when the app is uninstalled .
DonManfred Expert Licensed User Longtime User Dec 12, 2019 #7 You can store the data in a file on dirrootexternal and when your app starts you check the existence of this file and load it. Upvote 0
You can store the data in a file on dirrootexternal and when your app starts you check the existence of this file and load it.
C cambol Active Member Licensed User Longtime User Dec 12, 2019 #8 Dear DonManFred : I know this way store for file , But I want a permanent key for this app like IOS pp.KeyChainPut("uid",ac.GetDeviceUID) Upvote 0
Dear DonManFred : I know this way store for file , But I want a permanent key for this app like IOS pp.KeyChainPut("uid",ac.GetDeviceUID)
C cambol Active Member Licensed User Longtime User Dec 12, 2019 #9 walterf25 said: Did I misunderstand the question? Click to expand... You get it Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2019 #10 File.DirRootExternal files will not be deleted when the app is uninstalled. There is no similar feature in Android. Upvote 0
File.DirRootExternal files will not be deleted when the app is uninstalled. There is no similar feature in Android.
C cambol Active Member Licensed User Longtime User Dec 18, 2019 #11 Erel : Is there any way to get or set a key for app and not be deleted after uninstall in SDKtargetVersion 29 ? ps File.DirRootExternal is not avaiiable for targetVersion 29 . Upvote 0
Erel : Is there any way to get or set a key for app and not be deleted after uninstall in SDKtargetVersion 29 ? ps File.DirRootExternal is not avaiiable for targetVersion 29 .
DonManfred Expert Licensed User Longtime User Dec 18, 2019 #12 cambol said: ps File.DirRootExternal is not avaiiable for targetVersion 29 . Click to expand... not true. If the device HAS an external sdcard then you need to use usbstorage class. DirRootExternal points to the secondary storage which is an internal SDKCard. You can access it using runtimepermission. Upvote 0
cambol said: ps File.DirRootExternal is not avaiiable for targetVersion 29 . Click to expand... not true. If the device HAS an external sdcard then you need to use usbstorage class. DirRootExternal points to the secondary storage which is an internal SDKCard. You can access it using runtimepermission.
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2019 #13 There are changes in targetSdkVersion 29 however you will be able to opt out of these changes with the requestLegacyExternalStorage property, at least in the next year or so. You will also be able to access it with ExternalStorage though it will be more cumbersome. There isn't any other local place that you can store data that will not be deleted. Upvote 0
There are changes in targetSdkVersion 29 however you will be able to opt out of these changes with the requestLegacyExternalStorage property, at least in the next year or so. You will also be able to access it with ExternalStorage though it will be more cumbersome. There isn't any other local place that you can store data that will not be deleted.