on 07-09-2012 4:09 PM
Hi there
I'm trying to create a DataVault in SUP 2.1 ESD #2 with the following line of Java code:
DataVault vault = DataVault.createVault("testDataVault", "password", "salt");
I have installed the SybaseDataProvider.apk package on my Android device, however I continue to get the following exception:
"Context not initialized"
Does anyone know what I might be doing wrong?
Thanks.
Hi,
You can try
DataVault.init(getApplicationContext());
DataVault.createVault("testdatavault", "password", "salt");
DataVault vault = DataVault.getVault("testDataVault");
However if you are using SUP-ODP, you can use the below
LiteDataVault.init(getApplicationContext());
LiteDataVault.createVault("vaultName", "pwd", "salt");
LiteDataVault ltv = LiteDataVault.getVault("vaultName");
regards
Rohith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishneel,
You can do it in one of the below below ways.
1. Through afaria
2. Include the SybaseDataProvider.apk in your android project/app and have a custom code in your app to deploy this when you deploy your app.
3. Upgrade to 2.1.3. In this release it is part of the library and no need to use SybaseDataProvider.apk.
You can use the PrivateDataVault in 2.1.3 as below.
PrivateDataVault.init(getApplicationContext());
PrivateDataVault.createVault("testdatavault", "password", "salt");
PrivateDataVault vault = PrivateDataVault.getVault("testDataVault");
regards
Rohith
Yes, i agree with Rohith Deraje.
If you need to use Data Vault or if the application mandates the SDK to store the credentials.
you need to have SybaseDataProvider.apk installed in you device before hand.
SybaseDataProvider.apk provides native API's in order to use DataVault.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.