Android Question How to code on android like IOS pp.KeyChainPut

cambol

Active Member
Licensed User
Longtime User
How to code on android like IOS

Code:
pp.KeyChainPut("uid",ac.GetDeviceUID)

pp.KeyChainGet("uid")
 
How to code on android like IOS

Code:
pp.KeyChainPut("uid",ac.GetDeviceUID)

pp.KeyChainGet("uid")
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
There is no identical feature in Android. Do you need it to store data that is not deleted when the app is uninstalled?
Did I misunderstand the question?
 
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 .
 
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.
 
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)
 
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 .
 
Upvote 0
ps File.DirRootExternal is not avaiiable for targetVersion 29 .
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
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
Back
Top